diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-07-09 22:30:50 +0100 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-07-09 22:30:50 +0100 |
| commit | 9be476e3bb4cde7b086581931ed39ac137207ffe (patch) | |
| tree | 149562627e24310c97533aa50fe77e5cccfb8621 /indra/newview/llvoavatar.cpp | |
| parent | 0b5bc866183c7b28aaea93f201e5010b90dd706d (diff) | |
MAINT-7926, MAINT-8400 - fixes related to bounding box and LOD calculations for rigged meshes in animated objects
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9b8af204cf..1ed105f8d4 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -1316,10 +1316,10 @@ void LLVOAvatar::calculateSpatialExtents(LLVector4a& newMin, LLVector4a& newMax) newMin = pos; newMax = pos; - //stretch bounding box by joint positions. No point doing this for + //stretch bounding box by joint positions. Doing this for //control avs, where the polymeshes aren't maintained or - //displayed. - if (box_detail>=1 && !isControlAvatar()) + //displayed, can give inaccurate boxes due to joints stuck at (0,0,0). + if ((box_detail>=1) && !isControlAvatar()) { for (polymesh_map_t::iterator i = mPolyMeshes.begin(); i != mPolyMeshes.end(); ++i) { |
