diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpaneldisplay.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_graphics1.xml | 3 |
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 | ||
724 | void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data) | 724 | void 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" |