Converted frequently occuring setting lookups to LLCachedControl
Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup Added F32 overload to LLSD because using F64 needlessly is silly. (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
@@ -305,7 +305,9 @@ void LLToolBar::refresh()
|
||||
{
|
||||
build_mode = FALSE;
|
||||
}
|
||||
gSavedSettings.setBOOL("BuildBtnState", build_mode);
|
||||
static LLCachedControl<bool> build_btn_state("BuildBtnState",false);
|
||||
if(build_btn_state!=(bool)build_mode)
|
||||
build_btn_state = build_mode;
|
||||
|
||||
if (isInVisibleChain())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user