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

@@ -962,6 +962,17 @@ This should be as low as possible, but too low may break functionality</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>ResetViewTurnsAvatar</key>
<map>
<key>Comment</key>
<string>When true, resetting view by hitting escape or using the menu entry will turn your avatar to the direction the camera was pointed</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>0</boolean>
</map>
<key>ShowDisplayNameChanges</key>
<map>
<key>Comment</key>

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);