summaryrefslogtreecommitdiff
path: root/indra/newview/llavatarrendernotifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llavatarrendernotifier.cpp')
-rw-r--r--indra/newview/llavatarrendernotifier.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/newview/llavatarrendernotifier.cpp b/indra/newview/llavatarrendernotifier.cpp
index 82f051a26c..a13e142e16 100644
--- a/indra/newview/llavatarrendernotifier.cpp
+++ b/indra/newview/llavatarrendernotifier.cpp
@@ -115,17 +115,18 @@ void LLAvatarRenderNotifier::displayNotification(bool show_over_limit)
std::string notification_name;
if (mShowOverLimitAgents)
{
+ notification_name = "AgentComplexityWithVisibility";
+ args["OVERLIMIT_MSG"] = overLimitMessage();
+
+ // remember what the situation was so that we only notify when it has changed
mAgentsCount = mLatestAgentsCount;
mOverLimitAgents = mLatestOverLimitAgents;
mOverLimitPct = mLatestOverLimitPct;
-
- std::string notification_message = overLimitMessage();
- notification_name = "RegionAndAgentComplexity";
- args["OVERLIMIT_MSG"] = notification_message;
}
else
{
- notification_name = "AgentComplexity";
+ // no change in visibility, just update complexity
+ notification_name = "AgentComplexity";
}
if (mNotificationPtr != NULL && mNotificationPtr->getName() != notification_name)