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:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user