diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-02-21 17:46:27 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-02-21 17:46:27 +0200 |
commit | 97f6736d7fe2575023eff3a6429855c19d9f92f5 (patch) | |
tree | d03109ec26deb976987ada82db55edf9c061660f | |
parent | 9f10853c03293f845d9a17adcf8de7ea23a0a778 (diff) |
Cached setting should be used in draw() calls
-rw-r--r-- | indra/newview/lltracker.cpp | 8 |
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; |