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

@@ -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
{