Cached setting should be used in draw() calls

master
Mnikolenko Productengine 2022-02-21 17:46:27 +02:00
parent 9f10853c03
commit 97f6736d7f
1 changed files with 6 additions and 2 deletions

View File

@ -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;