triage#59 Fix missed 'static' declarations
parent
6d6eabca44
commit
47985e5822
|
|
@ -370,8 +370,8 @@ void LLDrawPoolAvatar::renderShadow(S32 pass)
|
|||
return;
|
||||
}
|
||||
|
||||
LLCachedControl<bool> debug_invisible(gSavedSettings, "RenderAvatarFriendsOnly", false);
|
||||
if (debug_invisible()
|
||||
static LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
|
||||
if (friends_only()
|
||||
&& !avatarp->isControlAvatar()
|
||||
&& !avatarp->isSelf()
|
||||
&& !avatarp->isBuddy())
|
||||
|
|
@ -732,7 +732,7 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
|
|||
return;
|
||||
}
|
||||
|
||||
LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
|
||||
static LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
|
||||
if (!single_avatar
|
||||
&& friends_only()
|
||||
&& !avatarp->isUIAvatar()
|
||||
|
|
|
|||
|
|
@ -1190,8 +1190,8 @@ void LLInvFVBridge::addMarketplaceContextMenuOptions(U32 flags,
|
|||
LLInventoryModel::cat_array_t categories;
|
||||
LLInventoryModel::item_array_t items;
|
||||
gInventory.collectDescendents(local_version_folder_id, categories, items, false);
|
||||
LLCachedControl<U32> max_depth(gSavedSettings, "InventoryOutboxMaxFolderDepth", 4);
|
||||
LLCachedControl<U32> max_count(gSavedSettings, "InventoryOutboxMaxFolderCount", 20);
|
||||
static LLCachedControl<U32> max_depth(gSavedSettings, "InventoryOutboxMaxFolderDepth", 4);
|
||||
static LLCachedControl<U32> max_count(gSavedSettings, "InventoryOutboxMaxFolderCount", 20);
|
||||
if (categories.size() >= max_count
|
||||
|| depth > (max_depth + 1))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue