diff options
author | Oz Linden <oz@lindenlab.com> | 2016-04-28 14:42:13 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2016-04-28 14:42:13 -0400 |
commit | ff6d4b517f8f9bf1bfc9698e4cb7cf4ff5ff2646 (patch) | |
tree | ca91ec658421a7ce4a124ff52eb861129fcf7e21 /indra/newview/llavatarrendernotifier.cpp | |
parent | e81135b5d82701745a6fb324d70312796a1ee855 (diff) |
minor code clarity improvements
Diffstat (limited to 'indra/newview/llavatarrendernotifier.cpp')
-rw-r--r-- | indra/newview/llavatarrendernotifier.cpp | 11 |
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) |