Feature Request: Add debug setting ResetViewTurnsAvatar to solve the problem described in Issue 715 Comment 10

Solves https://jira.secondlife.com/browse/VWR-27956
This commit is contained in:
Inusaito Sayori
2013-08-28 01:12:03 -04:00
parent 64c6a8a3ed
commit e08c05fbd6
2 changed files with 16 additions and 0 deletions

View File

@@ -4117,6 +4117,11 @@ void reset_view_final( BOOL proceed )
return;
}
if (!gViewerWindow->getLeftMouseDown() && gAgentCamera.cameraThirdPerson() && gSavedSettings.getBOOL("ResetViewTurnsAvatar") && !gSavedSettings.getBOOL("FreezeTime"))
{
gAgentCamera.setFocusOnAvatar(TRUE, ANIMATE);
}
gAgentCamera.switchCameraPreset(CAMERA_PRESET_REAR_VIEW);
gAgentCamera.resetView(TRUE, TRUE);
gAgentCamera.setLookAt(LOOKAT_TARGET_CLEAR);