aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbuildoptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterbuildoptions.cpp')
-rw-r--r--linden/indra/newview/llfloaterbuildoptions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterbuildoptions.cpp b/linden/indra/newview/llfloaterbuildoptions.cpp
index 372b1df..6cbb9fe 100644
--- a/linden/indra/newview/llfloaterbuildoptions.cpp
+++ b/linden/indra/newview/llfloaterbuildoptions.cpp
@@ -122,6 +122,8 @@ BOOL LLFloaterBuildOptions::postBuild()
122 childSetValue("GridDrawSize", gSavedSettings.getF32("GridDrawSize") ); 122 childSetValue("GridDrawSize", gSavedSettings.getF32("GridDrawSize") );
123 childSetValue("GridOpacity", gSavedSettings.getF32("GridOpacity") ); 123 childSetValue("GridOpacity", gSavedSettings.getF32("GridOpacity") );
124 124
125 childSetValue("spinner_decimal", (F32)gSavedSettings.getU32("DecimalsForTools") );
126
125 getChild<LLComboBox>("material")->setCommitCallback(onComboBoxCommit); 127 getChild<LLComboBox>("material")->setCommitCallback(onComboBoxCommit);
126 getChild<LLComboBox>("combobox shininess")->setCommitCallback(onComboBoxCommit); 128 getChild<LLComboBox>("combobox shininess")->setCommitCallback(onComboBoxCommit);
127 129
@@ -292,6 +294,8 @@ void LLFloaterBuildOptions::apply()
292 gSavedSettings.setF32("GridResolution", childGetValue("GridResolution").asReal() ); 294 gSavedSettings.setF32("GridResolution", childGetValue("GridResolution").asReal() );
293 gSavedSettings.setF32("GridDrawSize", childGetValue("GridDrawSize").asReal() ); 295 gSavedSettings.setF32("GridDrawSize", childGetValue("GridDrawSize").asReal() );
294 gSavedSettings.setF32("GridOpacity", childGetValue("GridOpacity").asReal() ); 296 gSavedSettings.setF32("GridOpacity", childGetValue("GridOpacity").asReal() );
297
298 gSavedSettings.setU32("DecimalsForTools", childGetValue("spinner_decimal").asReal() );
295} 299}
296 300
297void LLFloaterBuildOptions::cancel() 301void LLFloaterBuildOptions::cancel()
@@ -335,6 +339,8 @@ void LLFloaterBuildOptions::reset()
335 childSetValue("GridResolution", gSavedSettings.getControl("GridResolution")->getDefault() ); 339 childSetValue("GridResolution", gSavedSettings.getControl("GridResolution")->getDefault() );
336 childSetValue("GridDrawSize", gSavedSettings.getControl("GridDrawSize")->getDefault() ); 340 childSetValue("GridDrawSize", gSavedSettings.getControl("GridDrawSize")->getDefault() );
337 childSetValue("GridOpacity", gSavedSettings.getControl("GridOpacity")->getDefault() ); 341 childSetValue("GridOpacity", gSavedSettings.getControl("GridOpacity")->getDefault() );
342
343 childSetValue("spinner_decimal", gSavedSettings.getControl("DecimalsForTools")->getDefault() );
338} 344}
339 345
340void LLFloaterBuildOptions::refresh() 346void LLFloaterBuildOptions::refresh()