SL-17448: Also update the octree box if there is a position rebuild
parent
6d2c8c2628
commit
3feb511623
|
|
@ -2209,7 +2209,9 @@ BOOL LLVOVolume::updateGeometry(LLDrawable *drawable)
|
|||
}
|
||||
|
||||
BOOL compiled = FALSE;
|
||||
BOOL should_update_octree_bounds = bool(getRiggedVolume());
|
||||
// This should be true in most cases, unless we're sure no octree update is
|
||||
// needed.
|
||||
BOOL should_update_octree_bounds = bool(getRiggedVolume()) || mDrawable->isState(LLDrawable::REBUILD_POSITION) || !mDrawable->getSpatialExtents()->isFinite3();
|
||||
|
||||
if (mVolumeChanged || mFaceMappingChanged)
|
||||
{
|
||||
|
|
@ -2258,7 +2260,6 @@ BOOL LLVOVolume::updateGeometry(LLDrawable *drawable)
|
|||
}
|
||||
// NaCl End
|
||||
|
||||
should_update_octree_bounds = should_update_octree_bounds || !mDrawable->getSpatialExtents()->isFinite3();
|
||||
// Generate bounding boxes if needed, and update the object's size in the
|
||||
// octree
|
||||
genBBoxes(FALSE, should_update_octree_bounds);
|
||||
|
|
|
|||
Loading…
Reference in New Issue