Suppress avatar complexity notices if ShowMyComplexityChanges is zero
parent
7eb14ba3ef
commit
5c70d7ed2b
|
|
@ -105,12 +105,6 @@ std::string LLAvatarRenderNotifier::overLimitMessage()
|
|||
|
||||
void LLAvatarRenderNotifier::displayNotification(bool show_over_limit)
|
||||
{
|
||||
if (gAgentCamera.getLastCameraMode() == CAMERA_MODE_MOUSELOOK)
|
||||
{
|
||||
LL_WARNS("AvatarRenderInfo") << "Suppressing a notification while in mouselook" << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
mAgentComplexity = mLatestAgentComplexity;
|
||||
mShowOverLimitAgents = show_over_limit;
|
||||
static LLCachedControl<U32> expire_delay(gSavedSettings, "ShowMyComplexityChanges", 20);
|
||||
|
|
@ -141,12 +135,18 @@ void LLAvatarRenderNotifier::displayNotification(bool show_over_limit)
|
|||
LLNotifications::instance().cancel(mNotificationPtr);
|
||||
}
|
||||
|
||||
LL_INFOS("AvatarRenderInfo") << notification_name << " " << args << LL_ENDL;
|
||||
// log unconditionally
|
||||
LL_WARNS("AvatarRenderInfo") << notification_name << " " << args << LL_ENDL;
|
||||
|
||||
mNotificationPtr = LLNotifications::instance().add(LLNotification::Params()
|
||||
.name(notification_name)
|
||||
.expiry(expire_date)
|
||||
.substitutions(args));
|
||||
if ( expire_delay // expiration of zero means do not show the notices
|
||||
&& gAgentCamera.getLastCameraMode() != CAMERA_MODE_MOUSELOOK // don't display notices in Mouselook
|
||||
)
|
||||
{
|
||||
mNotificationPtr = LLNotifications::instance().add(LLNotification::Params()
|
||||
.name(notification_name)
|
||||
.expiry(expire_date)
|
||||
.substitutions(args));
|
||||
}
|
||||
}
|
||||
|
||||
bool LLAvatarRenderNotifier::isNotificationVisible()
|
||||
|
|
|
|||
Loading…
Reference in New Issue