summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-02-21 17:46:27 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-02-21 17:46:27 +0200
commit97f6736d7fe2575023eff3a6429855c19d9f92f5 (patch)
treed03109ec26deb976987ada82db55edf9c061660f /indra/newview
parent9f10853c03293f845d9a17adcf8de7ea23a0a778 (diff)
Cached setting should be used in draw() calls
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltracker.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/lltracker.cpp b/indra/newview/lltracker.cpp
index 320554c39e..ab4ad5817b 100644
--- a/indra/newview/lltracker.cpp
+++ b/indra/newview/lltracker.cpp
@@ -113,8 +113,12 @@ void LLTracker::drawHUDArrow()
{
return;
}
-
- if (!gSavedSettings.getBOOL("RenderTrackerBeacon")) return;
+
+ static LLCachedControl<bool> render_beacon(gSavedSettings, "RenderTrackerBeacon", true);
+ if (!render_beacon)
+ {
+ return;
+ }
if (gViewerWindow->getProgressView()->getVisible()) return;