Skip to content
Snippets Groups Projects
Commit 30324515 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix crash due to missing control when RLVa disabled

parent 123504ef
No related branches found
No related tags found
No related merge requests found
...@@ -2186,7 +2186,7 @@ LLVector3d LLAgentCamera::getFocusOffsetInitial() ...@@ -2186,7 +2186,7 @@ LLVector3d LLAgentCamera::getFocusOffsetInitial()
F32 LLAgentCamera::getCameraOffsetScale() const F32 LLAgentCamera::getCameraOffsetScale() const
{ {
static const LLCachedControl<F32> cam_offset_scale(gSavedSettings, "CameraOffsetScale"); static const LLCachedControl<F32> cam_offset_scale(gSavedSettings, "CameraOffsetScale");
static const LLCachedControl<F32> cam_offset_scale_rlva(gSavedSettings, "CameraOffsetScaleRLVa"); static const LLCachedControl<F32> cam_offset_scale_rlva(gSavedSettings, "CameraOffsetScaleRLVa", 0.0f, "Declared in code");
return (ECameraPreset::CAMERA_RLV_SETCAM_VIEW != mCameraPreset) ? cam_offset_scale : cam_offset_scale_rlva; return (ECameraPreset::CAMERA_RLV_SETCAM_VIEW != mCameraPreset) ? cam_offset_scale : cam_offset_scale_rlva;
} }
// [/RLVa:KB] // [/RLVa:KB]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment