From 83c277afe8d2f7c3066fe611cda50a8bc22ccc87 Mon Sep 17 00:00:00 2001 From: Seth ProductEngine Date: Tue, 28 Jun 2011 20:46:52 +0300 Subject: 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. --- indra/newview/llfloatermodelwizard.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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("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("physics_slider")->getValue().asReal(); sInstance->mDecompParams["Retain%"] = physics_accuracy; -- cgit v1.2.3