aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 22dcbf1..6fb8998 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -57,7 +57,7 @@ BOOL LLPrefsAdvanced::postBuild()
57 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); 57 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens"));
58 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ShowClientNameTag")); 58 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ShowClientNameTag"));
59 childSetValue("windlight_check", gSavedSettings.getBOOL("UseServersideWindlightSettings")); 59 childSetValue("windlight_check", gSavedSettings.getBOOL("UseServersideWindlightSettings"));
60 childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ClothingLayerProtection")); 60 childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ShowMyClientTagToOthers"));
61 childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); 61 childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP"));
62 childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); 62 childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez"));
63 childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); 63 childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval"));
@@ -81,8 +81,16 @@ void LLPrefsAdvanced::apply()
81 gSavedSettings.setBOOL("UseServersideWindlightSettings", childGetValue("windlight_check")); 81 gSavedSettings.setBOOL("UseServersideWindlightSettings", childGetValue("windlight_check"));
82 82
83 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC 83 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC
84 if (gSavedSettings.getBOOL("ClothingLayerProtection") != (BOOL)childGetValue("client_name_tag_broadcast_check")) 84 if (gSavedSettings.getBOOL("ShowMyClientTagToOthers") != (BOOL)childGetValue("client_name_tag_broadcast_check"))
85 { 85 {
86 if(gSavedSettings.getBOOL("ShowMyClientTagToOthers"))
87 {
88 //ShowMyClientTagToOthers works only with ClothingLayerProtection true,
89 //while not showing also works with ClothingLayerProtection false.
90 //since ClothingLayerProtection true is preferrable only switch ON
91 gSavedSettings.setBOOL("ClothingLayerProtection", TRUE);
92 }
93
86 LLVOAvatar* avatar = gAgent.getAvatarObject(); 94 LLVOAvatar* avatar = gAgent.getAvatarObject();
87 if (avatar) 95 if (avatar)
88 { 96 {
@@ -91,7 +99,7 @@ void LLPrefsAdvanced::apply()
91 avatar->forceBakeAllTextures(slam_for_debug); 99 avatar->forceBakeAllTextures(slam_for_debug);
92 } 100 }
93 } 101 }
94 gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_broadcast_check")); 102 gSavedSettings.setBOOL("ShowMyClientTagToOthers", childGetValue("client_name_tag_broadcast_check"));
95 103
96 // This is bad bad BAD UI from Emerald, I know. 104 // This is bad bad BAD UI from Emerald, I know.
97 // If anyone wants to do this better, please do -- MC 105 // If anyone wants to do this better, please do -- MC