aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorJacek Antonelli2010-02-18 22:59:49 -0600
committerJacek Antonelli2010-02-18 22:59:49 -0600
commit3b26508428539bf65629b3f7b1c9844fec0b6d23 (patch)
treee4d204a971436d08f286ff2d9ba8aed2e2a393f8 /linden/indra
parentFixed #184: Previewing notecards resets camera. (diff)
downloadmeta-impy-3b26508428539bf65629b3f7b1c9844fec0b6d23.zip
meta-impy-3b26508428539bf65629b3f7b1c9844fec0b6d23.tar.gz
meta-impy-3b26508428539bf65629b3f7b1c9844fec0b6d23.tar.bz2
meta-impy-3b26508428539bf65629b3f7b1c9844fec0b6d23.tar.xz
Fixed #197: Windlight toolbar can't be hidden.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpaneldisplay.cpp4
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_graphics1.xml3
2 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp
index 7d88cf9..cbf6052 100644
--- a/linden/indra/newview/llpaneldisplay.cpp
+++ b/linden/indra/newview/llpaneldisplay.cpp
@@ -411,6 +411,8 @@ void LLPanelDisplay::refresh()
411 mLightingDetail = gSavedSettings.getS32("RenderLightingDetail"); 411 mLightingDetail = gSavedSettings.getS32("RenderLightingDetail");
412 mTerrainDetail = gSavedSettings.getS32("RenderTerrainDetail"); 412 mTerrainDetail = gSavedSettings.getS32("RenderTerrainDetail");
413 413
414 mWLControl = gSavedSettings.getBOOL("EnableWindlightRemote");
415
414 // slider text boxes 416 // slider text boxes
415 updateSliderText(mCtrlLODFactor, mLODFactorText); 417 updateSliderText(mCtrlLODFactor, mLODFactorText);
416 updateSliderText(mCtrlFlexFactor, mFlexFactorText); 418 updateSliderText(mCtrlFlexFactor, mFlexFactorText);
@@ -717,8 +719,6 @@ void LLPanelDisplay::apply()
717 { 719 {
718 applyWindowSize(); 720 applyWindowSize();
719 } 721 }
720
721 gSavedSettings.setBOOL("EnableWindlightRemote", childGetValue("toggle_windlight_control").asBoolean());
722} 722}
723 723
724void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data) 724void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data)
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_graphics1.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_graphics1.xml
index c663ae2..e2bc084 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_graphics1.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_graphics1.xml
@@ -11,7 +11,8 @@
11 <check_box bottom_delta="0" enabled="true" follows="left|top" 11 <check_box bottom_delta="0" enabled="true" follows="left|top"
12 font="SansSerifSmall" height="16" initial_value="false" 12 font="SansSerifSmall" height="16" initial_value="false"
13 label="Show WindLight toolbar" left="275" mouse_opaque="true" 13 label="Show WindLight toolbar" left="275" mouse_opaque="true"
14 name="toggle_windlight_control" radio_style="false" width="237" /> 14 name="toggle_windlight_control" radio_style="false" width="237"
15 control_name="EnableWindlightRemote" />
15 <text_editor type="string" length="1" allow_html="false" bg_readonly_color="0 0 0 0" bottom="-43" 16 <text_editor type="string" length="1" allow_html="false" bg_readonly_color="0 0 0 0" bottom="-43"
16 embedded_items="false" enabled="false" follows="left|top" 17 embedded_items="false" enabled="false" follows="left|top"
17 font="SansSerifSmall" height="20" hide_border="true" 18 font="SansSerifSmall" height="20" hide_border="true"