diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-10-14 17:50:41 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-10-14 17:50:41 +0800 |
commit | 97a2176fc3bdff7085ed5c09e577159760972776 (patch) | |
tree | d8c1f993073dd9eb1b94ba662a462c2765d601da /indra/newview/llspatialpartition.cpp | |
parent | 8e9e36dd8d365eadcc3519323cec8ef566fcedd0 (diff) | |
parent | 71d0603773a0d406560fc6add8a61f7e8d3cdb27 (diff) |
Merge remote-tracking branch 'secondlife/DRTVWR-559' into DRTVWR-559
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-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 ff3cb39ca4..b6128ba9b6 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 |