diff options
| author | RunitaiLinden <davep@lindenlab.com> | 2023-10-13 15:32:23 -0500 | 
|---|---|---|
| committer | RunitaiLinden <davep@lindenlab.com> | 2023-10-13 15:32:23 -0500 | 
| commit | 20f1ca92973f4cc44465ba76c0e5add9e657e1f1 (patch) | |
| tree | 6305563f1f4b7e54a2d59ad5e13d19c043cccd4b | |
| parent | 0d47ea31e38601683ef7351300950ec075cc35dd (diff) | |
SL-20448 Fix for worn animesh corrupting octree bounding boxes.
| -rw-r--r-- | indra/newview/llspatialpartition.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 29d42b3c00..a63d46f502 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -261,11 +261,11 @@ void LLSpatialGroup::expandExtents(const LLVector4a* addingExtents, const LLXfor  		LLVector3(mExtents[1].getF32ptr())  	}; -	LLQuaternion backwardRotation = ~currentTransform.getRotation(); +	LLQuaternion backwardRotation = ~currentTransform.getWorldRotation();  	for (LLVector3& corner : corners)  	{  		// Make coordinates relative to the current position -		corner -= currentTransform.getPosition(); +		corner -= currentTransform.getWorldPosition();  		// Rotate coordinates backward to the current rotation  		corner.rotVec(backwardRotation);  		// Expand root extents on the current corner | 
