Skip to content
Snippets Groups Projects
Commit 08cf926d authored by Andrey Kleshchev's avatar Andrey Kleshchev Committed by Andrey Kleshchev
Browse files

Issue #17 Crash at autoAdjustOrigin

parent 5c7903bf
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,9 @@ void LLReflectionMap::autoAdjustOrigin() ...@@ -74,8 +74,9 @@ void LLReflectionMap::autoAdjustOrigin()
{ {
const LLVector4a* bounds = mGroup->getBounds(); const LLVector4a* bounds = mGroup->getBounds();
auto* node = mGroup->getOctreeNode(); auto* node = mGroup->getOctreeNode();
LLSpatialPartition* part = mGroup->getSpatialPartition();
if (mGroup->getSpatialPartition()->mPartitionType == LLViewerRegion::PARTITION_VOLUME) if (part && part->mPartitionType == LLViewerRegion::PARTITION_VOLUME)
{ {
mPriority = 0; mPriority = 0;
// cast a ray towards 8 corners of bounding box // cast a ray towards 8 corners of bounding box
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment