summaryrefslogtreecommitdiff
path: root/indra/newview/llvograss.cpp
diff options
context:
space:
mode:
authorHecklezz <tj8@live.com.au>2025-11-13 15:55:28 +1000
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-11-13 10:18:19 +0200
commit4b78edbd1cd62b34f0b3f2b98ab4398437c6bc4d (patch)
tree7991f317f145497df96b97e63364e4324ef5b1d0 /indra/newview/llvograss.cpp
parent516a3d0dae7117068175df925ec2216430350b76 (diff)
Follow-up null checks on mVObjp to prevent crashes
Signed-off-by: Hecklezz <tj8@live.com.au>
Diffstat (limited to 'indra/newview/llvograss.cpp')
-rw-r--r--indra/newview/llvograss.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvograss.cpp b/indra/newview/llvograss.cpp
index fdd39a0e30..86d08b8658 100644
--- a/indra/newview/llvograss.cpp
+++ b/indra/newview/llvograss.cpp
@@ -736,7 +736,7 @@ void LLGrassPartition::getGeometry(LLSpatialGroup* group)
void LLVOGrass::updateDrawable(bool force_damped)
{
// Force an immediate rebuild on any update
- if (mDrawable.notNull())
+ if (mDrawable.notNull() && mDrawable->getVObj())
{
mDrawable->updateXform(true);
gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_ALL);