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:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user