diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 65d7712761..18da564754 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -345,6 +345,20 @@ void LLTextEditor::setText(const LLStringExplicit &utf8str, const LLStyle::Param
resetDirty();
}
+// Preview button
+void LLTextEditor::reparseText(const LLStringExplicit &utf8str, const LLStyle::Params& input_params)
+{
+ mParseOnTheFly = false;
+ LLTextBase::setText(utf8str, input_params);
+ mParseOnTheFly = true;
+}
+
+void LLTextEditor::reparseValue(const LLSD& value)
+{
+ reparseText(value.asString());
+}
+//
+
// [SL:KB] - Patch: UI-FloaterSearchReplace | Checked: 2013-12-30 (Catznip-3.6)
std::string LLTextEditor::getSelectionString() const
{
diff --git a/indra/llui/lltexteditor.h b/indra/llui/lltexteditor.h
index ccc902e58e..5a4790acd8 100644
--- a/indra/llui/lltexteditor.h
+++ b/indra/llui/lltexteditor.h
@@ -187,6 +187,11 @@ public:
// Non-undoable
void setText(const LLStringExplicit &utf8str, const LLStyle::Params& input_params = LLStyle::Params());
+ // Preview button
+ void reparseText(const LLStringExplicit &utf8str, const LLStyle::Params& input_params = LLStyle::Params());
+ void reparseValue(const LLSD& value);
+ //
+
// Removes text from the end of document
// Does not change highlight or cursor position.
diff --git a/indra/newview/aoengine.cpp b/indra/newview/aoengine.cpp
index 33f91d556a..a66c8885b8 100644
--- a/indra/newview/aoengine.cpp
+++ b/indra/newview/aoengine.cpp
@@ -1629,7 +1629,7 @@ void AOEngine::update()
}
else if (state_params[num].substr(0, 2) == "CT")
{
- LLStringUtil::convertToS32(state_params[num].substr(2, state_params[num].size() - 2), state->mCycleTime);
+ LLStringUtil::convertToF32(state_params[num].substr(2, state_params[num].size() - 2), state->mCycleTime);
LL_DEBUGS("AOEngine") << "Cycle Time specified:" << state->mCycleTime << LL_ENDL;
}
else
@@ -1828,12 +1828,9 @@ bool AOEngine::renameSet(AOSet* set, const std::string& name)
void AOEngine::saveState(const AOSet::AOState* state)
{
std::string stateParams = state->mName;
- F32 time = (F32)state->mCycleTime;
- if (time > 0.0f)
+ if (state->mCycleTime > 0.0f)
{
- std::ostringstream timeStr;
- timeStr << ":CT" << state->mCycleTime;
- stateParams += timeStr.str();
+ stateParams += llformat(":CT%.2f", state->mCycleTime);
}
if (state->mCycle)
{
@@ -2041,7 +2038,7 @@ void AOEngine::setRandomize(AOSet::AOState* state, bool randomize)
void AOEngine::setCycleTime(AOSet::AOState* state, F32 time)
{
- state->mCycleTime = (S32)time;
+ state->mCycleTime = time;
state->mDirty = true;
}
diff --git a/indra/newview/aoset.h b/indra/newview/aoset.h
index cf9cff8f10..2da7339b2b 100644
--- a/indra/newview/aoset.h
+++ b/indra/newview/aoset.h
@@ -85,7 +85,7 @@ class AOSet
LLUUID mRemapID;
bool mCycle;
bool mRandom;
- S32 mCycleTime;
+ F32 mCycleTime;
std::vector mAnimations;
U32 mCurrentAnimation;
LLUUID mCurrentAnimationID;
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 759a1fefa6..118f209adb 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -11572,6 +11572,17 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
0
+ FSFocusPointRender
+
CameraDoFResScale