aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-03-31 14:34:51 -0700
committerMcCabe Maxsted2010-04-03 14:02:20 -0700
commitbd6373b31d8165f4612b9cb8c7afa8cf14f02a72 (patch)
treed36c08f2ecb1606cce05eddb23912d7e985e5df4
parentAdded debug setting ShowStatusBarInMouselook to show statistics in mouselook (diff)
downloadmeta-impy-bd6373b31d8165f4612b9cb8c7afa8cf14f02a72.zip
meta-impy-bd6373b31d8165f4612b9cb8c7afa8cf14f02a72.tar.gz
meta-impy-bd6373b31d8165f4612b9cb8c7afa8cf14f02a72.tar.bz2
meta-impy-bd6373b31d8165f4612b9cb8c7afa8cf14f02a72.tar.xz
Added debug setting AppearanceForceStand to toggle whether avatar stands when editing appearance
-rw-r--r--linden/indra/newview/app_settings/settings.xml13
-rw-r--r--linden/indra/newview/llagent.cpp4
2 files changed, 15 insertions, 2 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 305454e..ff55c90 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -2,8 +2,19 @@
2<llsd> 2<llsd>
3<map> 3<map>
4 4
5 <!-- Show statistics in mouselook --> 5 <!-- Imprudence-specific settings -->
6 6
7 <key>AppearanceForceStand</key>
8 <map>
9 <key>Comment</key>
10 <string>Unsit avatar when entering appearance mode?</string>
11 <key>Persist</key>
12 <integer>1</integer>
13 <key>Type</key>
14 <string>Boolean</string>
15 <key>Value</key>
16 <integer>1</integer>
17 </map>
7 <key>ShowStatusBarInMouselook</key> 18 <key>ShowStatusBarInMouselook</key>
8 <map> 19 <map>
9 <key>Comment</key> 20 <key>Comment</key>
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp
index e0fde62..6e61859 100644
--- a/linden/indra/newview/llagent.cpp
+++ b/linden/indra/newview/llagent.cpp
@@ -4282,13 +4282,15 @@ void LLAgent::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL camera_ani
4282 } 4282 }
4283 4283
4284// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) 4284// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g)
4285 if(gSavedSettings.getBOOL("AppearanceForceStand"))
4285 if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (mAvatarObject.notNull()) && (mAvatarObject->mIsSitting) ) 4286 if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (mAvatarObject.notNull()) && (mAvatarObject->mIsSitting) )
4286 { 4287 {
4287 return; 4288 return;
4288 } 4289 }
4289// [/RLVa:KB] 4290// [/RLVa:KB]
4290 4291
4291 setControlFlags(AGENT_CONTROL_STAND_UP); // force stand up 4292 if(gSavedSettings.getBOOL("AppearanceForceStand"))
4293 setControlFlags(AGENT_CONTROL_STAND_UP); // force stand up
4292 gViewerWindow->getWindow()->resetBusyCount(); 4294 gViewerWindow->getWindow()->resetBusyCount();
4293 4295
4294 if (gFaceEditToolset) 4296 if (gFaceEditToolset)