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/llspatialpartition.cpp | |
parent | 75304b4ca81e3fdb9164ec607997a6c30616d8ca (diff) |
MAINT-5560: Correct imposter rendering flaws for avatars that have not had any attachments
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rwxr-xr-x | indra/newview/llspatialpartition.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 5e342099d7..11b619ba00 100755 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -862,10 +862,8 @@ void LLSpatialGroup::handleDestruction(const TreeNode* node) { if (bridge->mAvatar.notNull()) { - bridge->mAvatar->mAttachmentGeometryBytes -= mGeometryBytes; - bridge->mAvatar->mAttachmentGeometryBytes = llmax(bridge->mAvatar->mAttachmentGeometryBytes, 0); - bridge->mAvatar->mAttachmentSurfaceArea -= mSurfaceArea; - bridge->mAvatar->mAttachmentSurfaceArea = llmax(bridge->mAvatar->mAttachmentSurfaceArea, 0.f); + bridge->mAvatar->modifyAttachmentGeometryBytes( -mGeometryBytes ); + bridge->mAvatar->modifyAttachmentSurfaceArea( -mSurfaceArea ); } } |