Skip to content

Commit a259316

Browse files
committed
#3329 Crash at LLSpatialGroup::dirtyGeom
1 parent cba1807 commit a259316

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

indra/newview/llvovolume.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,12 @@ void LLVOVolume::animateTextures()
645645
// LLVOVolume::updateTextureVirtualSize when the
646646
// mTextureMatrix is not yet present
647647
gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_TCOORD);
648-
mDrawable->getSpatialGroup()->dirtyGeom();
649-
gPipeline.markRebuild(mDrawable->getSpatialGroup());
648+
LLSpatialGroup* group = mDrawable->getSpatialGroup();
649+
if (group)
650+
{
651+
group->dirtyGeom();
652+
gPipeline.markRebuild(group);
653+
}
650654
}
651655
}
652656

0 commit comments

Comments
 (0)