From 1f8f3d13d0baf7668696d98064a6d65af52d036b Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Tue, 21 Apr 2020 15:41:42 +0300 Subject: SL-10613 The Smooth parameter should be 0 by default --- indra/newview/llfloatermodelpreview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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*) ¶m[i]); } } -- cgit v1.2.3