diff options
author | Oz Linden <oz@lindenlab.com> | 2015-08-25 17:51:35 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2015-08-25 17:51:35 -0400 |
commit | 206ef7a1562db19a4d8a41e55b7272c917f4b62c (patch) | |
tree | 269bacf70ea50e6242eecd2b9c9c55f84fe72c44 /indra/newview/llavatarrendernotifier.cpp | |
parent | 75304b4ca81e3fdb9164ec607997a6c30616d8ca (diff) |
MAINT-5560: Correct imposter rendering flaws for avatars that have not had any attachments
Diffstat (limited to 'indra/newview/llavatarrendernotifier.cpp')
-rw-r--r-- | indra/newview/llavatarrendernotifier.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llavatarrendernotifier.cpp b/indra/newview/llavatarrendernotifier.cpp index c7fdf4cce4..2596035f95 100644 --- a/indra/newview/llavatarrendernotifier.cpp +++ b/indra/newview/llavatarrendernotifier.cpp @@ -133,9 +133,10 @@ void LLAvatarRenderNotifier::updateNotification() // next 'over limit' update should be displayed as soon as possible if there is anything noteworthy mPopUpDelayTimer.resetWithExpiry(0); } - else if ((mPopUpDelayTimer.hasExpired() || is_visible) - && (mOverLimitPct > 0 || mLatestOverLimitPct > 0) - && abs(mOverLimitPct - mLatestOverLimitPct) > mLatestOverLimitPct * RENDER_ALLOWED_CHANGE_PCT) + else if ( (mPopUpDelayTimer.hasExpired() || is_visible) + && (mOverLimitPct > 0 || mLatestOverLimitPct > 0) + && std::abs(mOverLimitPct - mLatestOverLimitPct) > mLatestOverLimitPct * RENDER_ALLOWED_CHANGE_PCT + ) { // display in case of drop to/from zero and in case of significant (RENDER_ALLOWED_CHANGE_PCT) changes display_notification = true; |