diff options
author | Seth ProductEngine <slitovchuk@productengine.com> | 2011-06-28 20:46:52 +0300 |
---|---|---|
committer | Seth ProductEngine <slitovchuk@productengine.com> | 2011-06-28 20:46:52 +0300 |
commit | 83c277afe8d2f7c3066fe611cda50a8bc22ccc87 (patch) | |
tree | 8d1e4af1bdb4ae5df00ed975cb710dcd1e55252d | |
parent | c5a60ba865e593d4028fcf22322c07b6aa7f94ce (diff) |
SH-1725 WIP Fixed the physics detail slider value.
Inverted the min value to the "performance" end of the slider and the max value to the "accuracy" end.
-rw-r--r-- | indra/newview/llfloatermodelwizard.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelwizard.cpp b/indra/newview/llfloatermodelwizard.cpp index 32b8850803..9efebbd336 100644 --- a/indra/newview/llfloatermodelwizard.cpp +++ b/indra/newview/llfloatermodelwizard.cpp @@ -458,7 +458,9 @@ void LLFloaterModelWizard::executePhysicsStage(std::string stage_name) { if (sInstance) { - F64 physics_accuracy = sInstance->getChild<LLSliderCtrl>("physics_slider")->getValue().asReal(); + // Invert the slider value so that "performance" end is giving the least detailed physics, + // and the "accuracy" end is giving the most detailed physics + F64 physics_accuracy = 1 - sInstance->getChild<LLSliderCtrl>("physics_slider")->getValue().asReal(); sInstance->mDecompParams["Retain%"] = physics_accuracy; |