diff options
author | simon <none@none> | 2013-03-28 16:06:07 -0700 |
---|---|---|
committer | simon <none@none> | 2013-03-28 16:06:07 -0700 |
commit | d8dc74b83349752768d99b77c92a284955ee04e4 (patch) | |
tree | 9ffa74c4cf38f8bf1b68cf361ca88ee01555978f /indra/newview/llspatialpartition.cpp | |
parent | 6bb7fd40d0fdc7902f1ac9db06a479121c177d0d (diff) |
MAINT-2426 : Viewer support for new simulator AvatarRenderInfo capability. Reviewed by Kelly
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r-- | indra/newview/llspatialpartition.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 759e1a7b4c..1d30b19308 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -1404,7 +1404,9 @@ 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); } } |