diff options
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rwxr-xr-x | indra/newview/llvovolume.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 160e2fbdb3..44ba09c171 100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4703,8 +4703,7 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) if (pAvatarVO) { - pAvatarVO->modifyAttachmentGeometryBytes( -group->mGeometryBytes ); - pAvatarVO->modifyAttachmentSurfaceArea( -group->mSurfaceArea ); + pAvatarVO->subtractAttachmentSizes( group->mGeometryBytes, group->mSurfaceArea ); } group->mGeometryBytes = 0; @@ -5258,8 +5257,7 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) if (pAvatarVO) { - pAvatarVO->modifyAttachmentGeometryBytes( group->mGeometryBytes ); - pAvatarVO->modifyAttachmentSurfaceArea( group->mSurfaceArea ); + pAvatarVO->addAttachmentSizes( group->mGeometryBytes, group->mSurfaceArea ); } } |