Added option to turn the avatar around when walking backwards

master
ZiRee 2011-04-25 05:14:29 +02:00
parent 4e60d22646
commit 86e5e7ab91
3 changed files with 25 additions and 1 deletions

View File

@ -13494,6 +13494,17 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>0</integer>
</map>
<key>TurnAroundWhenWalkingBackwards</key>
<map>
<key>Comment</key>
<string>Turns your avatar around to face the camera when you are walking backwards.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>KittyFlickrLastRating</key>
<map>
<key>Comment</key>

View File

@ -3548,7 +3548,7 @@ BOOL LLVOAvatar::updateCharacter(LLAgent &agent)
}
LLVector3 velDir = getVelocity();
velDir.normalize();
if ( mSignaledAnimations.find(ANIM_AGENT_WALK) != mSignaledAnimations.end())
if (!gSavedSettings.getBOOL("TurnAroundWhenWalkingBackwards") && (mSignaledAnimations.find(ANIM_AGENT_WALK) != mSignaledAnimations.end()))
{
F32 vpD = velDir * primDir;
if (vpD < -0.5f)

View File

@ -127,6 +127,19 @@
width="270"
control_name="RezUnderLandGroup"
tool_tip="Attempts to rez objects under the land group if you're in the land group regardless of which current group tag you're wearing."/>
<check_box bottom_delta="-30"
follows="left|top"
font="SansSerifSmall"
height="16"
initial_value="false"
label="Turn avatar around when walking backwards"
left="15"
mouse_opaque="true"
name="backwardsturnavatar"
radio_style="false"
width="270"
control_name="TurnAroundWhenWalkingBackwards"
tool_tip="Turns your avatar around to face the camera when you are walking backwards."/>
</panel>