diff options
author | McCabe Maxsted | 2010-04-19 06:01:56 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-19 06:01:56 -0700 |
commit | f400b1c357e515d16617ed77c0c46838c9c5ab2d (patch) | |
tree | 7b6b23c4401fb2fc94461ca65ca821f484c387aa /linden/indra/newview/llfloaterbuildoptions.cpp | |
parent | Made the CV decimal in tools patch actually work to 5 decimal places (diff) | |
download | meta-impy-f400b1c357e515d16617ed77c0c46838c9c5ab2d.zip meta-impy-f400b1c357e515d16617ed77c0c46838c9c5ab2d.tar.gz meta-impy-f400b1c357e515d16617ed77c0c46838c9c5ab2d.tar.bz2 meta-impy-f400b1c357e515d16617ed77c0c46838c9c5ab2d.tar.xz |
Added option to advanced build window to set object edit decimal places
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterbuildoptions.cpp | 6 |
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 | ||
297 | void LLFloaterBuildOptions::cancel() | 301 | void 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 | ||
340 | void LLFloaterBuildOptions::refresh() | 346 | void LLFloaterBuildOptions::refresh() |