From ed687991f66cc6f1ea030f153cb41fc94bda2944 Mon Sep 17 00:00:00 2001 From: chanayane Date: Thu, 13 Mar 2025 15:03:47 +0100 Subject: [PATCH 1/2] prevents having Move Lock activated but disabled when for some reason the LSL Bridge is not worn or not ready --- indra/newview/llviewermenu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index a25ff25cee..fcf1f6b105 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -5141,6 +5141,13 @@ class FSSelfCheckMoveLock : public view_listener_t if (LLGridManager::getInstance()->isInSecondLife()) { new_value = gSavedPerAccountSettings.getBOOL("UseMoveLock"); + // prevents having Move Lock activated but disabled when for some reason the LSL Bridge is not worn or not ready + if (new_value && !enable_bridge_function()) + { + gSavedPerAccountSettings.setBOOL("UseMoveLock", false); + new_value = false; + } + // } #ifdef OPENSIM else From 16a2414207f524dd709c0fecc37bc4a59553781d Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 24 Mar 2025 22:15:32 +0100 Subject: [PATCH 2/2] Small improvement --- indra/llui/llconsole.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llui/llconsole.cpp b/indra/llui/llconsole.cpp index 0c5714d952..d810d365bc 100644 --- a/indra/llui/llconsole.cpp +++ b/indra/llui/llconsole.cpp @@ -159,8 +159,8 @@ void LLConsole::draw() // //static const F32 padding_horizontal = 10; //static const F32 padding_vertical = 3; - static const F32 padding_horizontal = 15; - static const F32 padding_vertical = 8; + constexpr F32 padding_horizontal = 15; + constexpr F32 padding_vertical = 8; // LLGLSUIDefault gls_ui; @@ -177,7 +177,7 @@ void LLConsole::draw() // [FIRE-35039] Add flag to show/hide the on-screen console // Get the Show On-screen Console flag from the Comm menu - static LLCachedControl showOnscreenConsole(*LLUI::getInstance()->mSettingGroups["config"], "FSShowOnscreenConsole"); + static LLUICachedControl showOnscreenConsole("FSShowOnscreenConsole"); // If the Show On-screen Console flag is disabled and the current console is the global console // (Not a debug console), then don't try to draw if (!showOnscreenConsole && this == gConsole)