#2255 BugSplat Crash #1503774: SecondLifeViewer!LLViewerOctreeGroup::hasState(227)

master
Alexander Gavriliuk 2024-08-12 15:20:46 +02:00 committed by Guru
parent f982463488
commit 3f9a38bb4b
1 changed files with 2 additions and 1 deletions

View File

@ -1051,7 +1051,8 @@ public:
LLSpatialGroup* group = (LLSpatialGroup*)base_group;
group->checkOcclusion();
if (group->getOctreeNode()->getParent() && //never occlusion cull the root node
if (group->getOctreeNode() &&
group->getOctreeNode()->getParent() && //never occlusion cull the root node
LLPipeline::sUseOcclusion && //ignore occlusion if disabled
group->isOcclusionState(LLSpatialGroup::OCCLUDED))
{