#2231 BugSplat Crash #1502347: SecondLifeViewer!LLViewerObject::getBoundingBoxAgent(5858)

master
Alexander Gavriliuk 2024-08-09 16:41:37 +02:00 committed by Guru
parent 5a1ce7974b
commit ecfa05711e
1 changed files with 2 additions and 1 deletions

View File

@ -5753,7 +5753,8 @@ LLBBox LLViewerObject::getBoundingBoxAgent() const
}
if (avatar_parent && avatar_parent->isAvatar() &&
root_edit && root_edit->mDrawable.notNull() && root_edit->mDrawable->getXform()->getParent())
root_edit && root_edit->mDrawable.notNull() && !root_edit->mDrawable->isDead() &&
root_edit->mDrawable->getXform()->getParent())
{
LLXform* parent_xform = root_edit->mDrawable->getXform()->getParent();
position_agent = (getPositionEdit() * parent_xform->getWorldRotation()) + parent_xform->getWorldPosition();