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/llvovolume.cpp | |
parent | 6bb7fd40d0fdc7902f1ac9db06a479121c177d0d (diff) |
MAINT-2426 : Viewer support for new simulator AvatarRenderInfo capability. Reviewed by Kelly
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 426ad8bc21..71ee2da216 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4242,7 +4242,9 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) if (pAvatarVO) { pAvatarVO->mAttachmentGeometryBytes -= group->mGeometryBytes; + pAvatarVO->mAttachmentGeometryBytes = llmax(pAvatarVO->mAttachmentGeometryBytes, 0); pAvatarVO->mAttachmentSurfaceArea -= group->mSurfaceArea; + pAvatarVO->mAttachmentSurfaceArea = llmax(pAvatarVO->mAttachmentSurfaceArea, 0.f); } group->mGeometryBytes = 0; |