summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2020-04-21 15:41:42 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2020-04-21 15:41:42 +0300
commit1f8f3d13d0baf7668696d98064a6d65af52d036b (patch)
treebf9d383661c9a919943b2366e7fe5fb4143e5139 /indra/newview/llfloatermodelpreview.cpp
parent9aa7485d61452bbaa4644cb15fa60f922d7d1e5b (diff)
SL-10613 The Smooth parameter should be 0 by default
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rw-r--r--indra/newview/llfloatermodelpreview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index a27272fbfe..54ab245089 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -1278,7 +1278,8 @@ void LLFloaterModelPreview::initDecompControls()
float max = param[i].mDetails.mRange.mHigh.mFloat;
float delta = param[i].mDetails.mRange.mDelta.mFloat;
- if ("Cosine%" == name)
+ bool is_smooth_cb = ("Cosine%" == name);
+ if (is_smooth_cb)
{
createSmoothComboBox(combo_box, min, max);
}
@@ -1290,7 +1291,7 @@ void LLFloaterModelPreview::initDecompControls()
combo_box->add(label, value, ADD_BOTTOM, true);
}
}
- combo_box->setValue(param[i].mDefault.mFloat);
+ combo_box->setValue(is_smooth_cb ? 0: param[i].mDefault.mFloat);
combo_box->setCommitCallback(onPhysicsParamCommit, (void*) &param[i]);
}
}