summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRunitai Linden <davep@lindenlab.com>2021-12-13 13:14:41 -0600
committerRunitai Linden <davep@lindenlab.com>2021-12-13 13:14:41 -0600
commite3d86e4599ee5944eaa2cfe0147d1a117495b2de (patch)
treede871074977cdd1a322520ba166226147919328c /indra
parentc21dad82072c417d9a8b1af8c83a5af02a0a4845 (diff)
SL-16487 Fix for broken bounding boxes on rigged meshes (still broken, but not more broken than release).
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvovolume.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index c1f83ed0ae..c312ebb307 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -1754,10 +1754,9 @@ BOOL LLVOVolume::genBBoxes(BOOL force_global)
if (rigged)
{
- min.set(-1, -1, -1, 0);
- max.set(1, 1, 1, 0);
-
mDrawable->setSpatialExtents(min, max);
+ // always use the same octree node position for any given rigged mesh so it doesn't switch nodes
+ // while animating (and thus rebuild its vertex buffer)
mDrawable->setPositionGroup(LLVector4a(0, 0, 0));
updateRadius();
mDrawable->movePartition();
@@ -4363,6 +4362,7 @@ void LLVOVolume::updateSpatialExtents(LLVector4a& newMin, LLVector4a& newMax)
F32 LLVOVolume::getBinRadius()
{
+ LL_PROFILE_ZONE_SCOPED;
F32 radius;
F32 scale = 1.f;