Skip to content

Commit

Permalink
[RLVa] When trapped in mouselook, avoid potential glitches and excess…
Browse files Browse the repository at this point in the history
… work if reset_view_final is called
  • Loading branch information
LiruMouse committed Jun 4, 2015
1 parent 63b67d6 commit 96e88b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indra/newview/llviewermenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4045,6 +4045,8 @@ void reset_view_final( BOOL proceed )
return;
}

if (gRlvHandler.hasBehaviour(RLV_BHVR_CAMDISTMAX) && gRlvHandler.camPole(RLV_BHVR_CAMDISTMAX) <= 0) return; // RLVa:LF - Trapped in mouselook; avoid extra work (and potential glitches)

if (!gViewerWindow->getLeftMouseDown() && gAgentCamera.cameraThirdPerson() && gSavedSettings.getBOOL("ResetViewTurnsAvatar") && !gSavedSettings.getBOOL("FreezeTime"))
{
gAgentCamera.setFocusOnAvatar(TRUE, ANIMATE);
Expand Down

0 comments on commit 96e88b9

Please sign in to comment.