summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerobject.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-03-24 18:04:26 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2010-03-24 18:04:26 +0200
commitd3a606f8323a32c660c71675257e3abd95cb097e (patch)
tree11e272b194cb42bd9b11b861395f44793d3fa9f6 /indra/newview/llviewerobject.cpp
parent5f46430a1aa16212838dd7a9493a42fcb5e92ec3 (diff)
parent7857f59f9e7c673f1ddbf32d6a66e85f78004445 (diff)
Manual merge from default branch.
Resolved conflicts in llpanellandmarks.cpp. --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r--indra/newview/llviewerobject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index b5642d07a5..6c8346df86 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -4029,7 +4029,8 @@ LLBBox LLViewerObject::getBoundingBoxAgent() const
avatar_parent = (LLViewerObject*)root_edit->getParent();
}
- if (avatar_parent && avatar_parent->isAvatar() && root_edit && root_edit->mDrawable.notNull())
+ if (avatar_parent && avatar_parent->isAvatar() &&
+ root_edit && root_edit->mDrawable.notNull() && root_edit->mDrawable->getXform()->getParent())
{
LLXform* parent_xform = root_edit->mDrawable->getXform()->getParent();
position_agent = (getPositionEdit() * parent_xform->getWorldRotation()) + parent_xform->getWorldPosition();