Skip to content

Commit efc081f

Browse files
committed
Fix crash on startup from missing RLVa setting (#260)
1 parent 338d7dc commit efc081f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

indra/newview/llagentcamera.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,8 +2242,8 @@ LLVector3d LLAgentCamera::getFocusOffsetInitial()
22422242
// [RLVa:KB] - @setcam_eyeoffsetscale
22432243
F32 LLAgentCamera::getCameraOffsetScale() const
22442244
{
2245-
static LLCachedControl<F32> camera_offset_scale(gSavedSettings, "CameraOffsetScale");
2246-
static LLCachedControl<F32> camera_offset_scale_rlv(gSavedSettings, "CameraOffsetScaleRLVa");
2245+
static LLCachedControl<F32> camera_offset_scale(gSavedSettings, "CameraOffsetScale", 1.0f);
2246+
static LLCachedControl<F32> camera_offset_scale_rlv(gSavedSettings, "CameraOffsetScaleRLVa", 0.0f);
22472247
return (ECameraPreset::CAMERA_RLV_SETCAM_VIEW != mCameraPreset) ? camera_offset_scale : camera_offset_scale_rlv;
22482248
}
22492249
// [/RLVa:KB]

0 commit comments

Comments
 (0)