summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-01-29 18:01:29 +0200
committerAndrey Lihatskiy <118752495+marchcat@users.noreply.github.com>2026-01-29 18:40:34 +0200
commit493455a7caf8449ccc4112612a192cd0dfea29df (patch)
tree198cda368b8ad49f089d71194cec9f68ef0211fb /indra
parentb4a7d1cefe2b4e72986079211e9d62ce5a472bd8 (diff)
#5348 Fix crash in getRenderRotation()
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerobject.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index dfb0521167..db1ef54ffa 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -4650,9 +4650,10 @@ const LLQuaternion LLViewerObject::getRenderRotation() const
}
else
{
- if (!mDrawable->isRoot())
+ LLDrawable* parent = mDrawable->getParent();
+ if (!mDrawable->isRoot() && parent)
{
- ret = getRotation() * LLQuaternion(mDrawable->getParent()->getWorldMatrix());
+ ret = getRotation() * LLQuaternion(parent->getWorldMatrix());
}
else
{