Group feature request: add ability to not turn when right clicking on objects

Adds RightClickTurnsAvatar to debug settings, defaults to true.
This commit is contained in:
Inusaito Sayori
2014-06-12 06:13:33 -04:00
parent 1f7751618e
commit 53a4931974
2 changed files with 12 additions and 1 deletions

View File

@@ -1314,6 +1314,17 @@ This should be as low as possible, but too low may break functionality</string>
<key>Value</key>
<boolean>0</boolean>
</map>
<key>RightClickTurnsAvatar</key>
<map>
<key>Comment</key>
<string>When false, right clicking on objects that are certain angles from the direction your avatar is facing will not turn your avatar to face them.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>1</boolean>
</map>
<key>ShowDisplayNameChanges</key>
<map>
<key>Comment</key>

View File

@@ -215,7 +215,7 @@ LLObjectSelectionHandle LLToolSelect::handleObjectSelection(const LLPickInfo& pi
LLSelectMgr::getInstance()->setAgentHUDZoom(target_zoom, current_zoom);
}
if (!gAgentCamera.getFocusOnAvatar() && // if camera not glued to avatar
if (gSavedSettings.getBOOL("RightClickTurnsAvatar") && !gAgentCamera.getFocusOnAvatar() && // if camera not glued to avatar
LLVOAvatar::findAvatarFromAttachment(object) != gAgentAvatarp && // and it's not one of your attachments
object != gAgentAvatarp) // and it's not you
{