diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-04-10 18:38:56 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-04-10 18:38:56 +0300 |
commit | 944b908be10367ae5770db03bddddd40cd4d18d8 (patch) | |
tree | 05217fe9a14ba18a1299de412ac9718b7689de61 /indra/newview/llfloatersavecamerapreset.cpp | |
parent | 1ec8c7a68adb10c78e1cc31182b797d6a2ae386f (diff) |
SL-12994 FIXED [Camera Presets] Zoom fraction should be saved as a part of Camera preset, not as separate setting
Diffstat (limited to 'indra/newview/llfloatersavecamerapreset.cpp')
-rw-r--r-- | indra/newview/llfloatersavecamerapreset.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llfloatersavecamerapreset.cpp b/indra/newview/llfloatersavecamerapreset.cpp index 34aefdf1c1..e2bd2e6d6a 100644 --- a/indra/newview/llfloatersavecamerapreset.cpp +++ b/indra/newview/llfloatersavecamerapreset.cpp @@ -107,6 +107,12 @@ void LLFloaterSaveCameraPreset::onBtnSave() gSavedSettings.setVector3("CameraOffsetRearView", gAgentCamera.getCurrentCameraOffset()); gSavedSettings.setVector3d("FocusOffsetRearView", gAgentCamera.getCurrentFocusOffset()); } + else + { + LLVector3 camera_offset = gSavedSettings.getVector3("CameraOffsetRearView") * gAgentCamera.getCurrentCameraZoomFraction(); + gSavedSettings.setVector3("CameraOffsetRearView", camera_offset); + gAgentCamera.resetCameraZoomFraction(); + } if (is_saving_new) { std::list<std::string> preset_names; |