diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-01-26 02:27:35 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-01-26 19:54:14 +0200 |
commit | 08cf926d3b6eb28e0b9751ba62b1ce01230a150b (patch) | |
tree | 3f53ec3c5052aa12017012e041bb48d5408986e2 | |
parent | 5c7903bfdc4b37bac04631b921273c5e4c0d297a (diff) |
Issue #17 Crash at autoAdjustOrigin
-rw-r--r-- | indra/newview/llreflectionmap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llreflectionmap.cpp b/indra/newview/llreflectionmap.cpp index a26445b4bc..2e5aaa997d 100644 --- a/indra/newview/llreflectionmap.cpp +++ b/indra/newview/llreflectionmap.cpp @@ -74,8 +74,9 @@ void LLReflectionMap::autoAdjustOrigin() { const LLVector4a* bounds = mGroup->getBounds(); auto* node = mGroup->getOctreeNode(); + LLSpatialPartition* part = mGroup->getSpatialPartition(); - if (mGroup->getSpatialPartition()->mPartitionType == LLViewerRegion::PARTITION_VOLUME) + if (part && part->mPartitionType == LLViewerRegion::PARTITION_VOLUME) { mPriority = 0; // cast a ray towards 8 corners of bounding box |