diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index 6119a58882d8dc32a2f4ece5b607b60db7b341cb..a311d8b8802e301c28a7c716ad07d00c06f32dab 100644 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -857,7 +857,8 @@ LLParcel* LLViewerParcelMgr::getCollisionParcel() const void LLViewerParcelMgr::render() { - if (mSelected && mRenderSelection && gSavedSettings.getBOOL("RenderParcelSelection")) + static LLCachedControl<bool> render_parcel_selection(gSavedSettings, "RenderParcelSelection"); + if (mSelected && mRenderSelection && render_parcel_selection) { // Rendering is done in agent-coordinates, so need to supply // an appropriate offset to the render code. @@ -877,7 +878,8 @@ void LLViewerParcelMgr::renderParcelCollision() mRenderCollision = FALSE; } - if (mRenderCollision && gSavedSettings.getBOOL("ShowBanLines")) + static LLCachedControl<bool> render_ban_line(gSavedSettings, "ShowBanLines"); + if (mRenderCollision && render_ban_line) { LLViewerRegion* regionp = gAgent.getRegion(); if (regionp)