summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-01-02 23:01:14 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-01-03 01:05:14 +0200
commita259316dc6212744194f340246b840e0a42b0191 (patch)
tree5dffe0e2092b22fde2473b230d47c20165ed50f8 /indra
parentcba1807a9164442880dbcbd48e1faff7a82153c7 (diff)
#3329 Crash at LLSpatialGroup::dirtyGeom
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvovolume.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 6514db0814..99f31f33df 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -645,8 +645,12 @@ void LLVOVolume::animateTextures()
// LLVOVolume::updateTextureVirtualSize when the
// mTextureMatrix is not yet present
gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_TCOORD);
- mDrawable->getSpatialGroup()->dirtyGeom();
- gPipeline.markRebuild(mDrawable->getSpatialGroup());
+ LLSpatialGroup* group = mDrawable->getSpatialGroup();
+ if (group)
+ {
+ group->dirtyGeom();
+ gPipeline.markRebuild(group);
+ }
}
}