Take SinguMotionResetsCamera into in handle_go_to.
This commit is contained in:
@@ -2828,14 +2828,17 @@ bool handle_go_to()
|
|||||||
|
|
||||||
LLViewerParcelMgr::getInstance()->deselectLand();
|
LLViewerParcelMgr::getInstance()->deselectLand();
|
||||||
|
|
||||||
if (isAgentAvatarValid() && !gSavedSettings.getBOOL("AutoPilotLocksCamera"))
|
if (gSavedSettings.getBOOL("SinguMotionResetsCamera"))
|
||||||
{
|
{
|
||||||
gAgentCamera.setFocusGlobal(gAgentCamera.getFocusTargetGlobal(), gAgentAvatarp->getID());
|
if (!gSavedSettings.getBOOL("AutoPilotLocksCamera"))
|
||||||
}
|
{
|
||||||
else
|
gAgentCamera.setFocusGlobal(gAgentCamera.getFocusTargetGlobal(), gAgentID);
|
||||||
{
|
}
|
||||||
// Snap camera back to behind avatar
|
else
|
||||||
gAgentCamera.setFocusOnAvatar(TRUE, ANIMATE);
|
{
|
||||||
|
// Snap camera back to behind avatar
|
||||||
|
gAgentCamera.setFocusOnAvatar(TRUE, ANIMATE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Could be first use
|
// Could be first use
|
||||||
|
|||||||
Reference in New Issue
Block a user