aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-04-11 16:21:00 -0700
committerMcCabe Maxsted2011-04-11 16:21:00 -0700
commit8ffc5caa830ef2f4c13fb8bc13151801fbf06afa (patch)
tree88957bcdc0aa4fee3da5cc19139352dbab4f4054
parentShortened the program files name of the Experimental builds since they don't ... (diff)
parentFix #851: Crash in LLViewerObject::getBoundingBoxAgent (diff)
downloadmeta-impy-8ffc5caa830ef2f4c13fb8bc13151801fbf06afa.zip
meta-impy-8ffc5caa830ef2f4c13fb8bc13151801fbf06afa.tar.gz
meta-impy-8ffc5caa830ef2f4c13fb8bc13151801fbf06afa.tar.bz2
meta-impy-8ffc5caa830ef2f4c13fb8bc13151801fbf06afa.tar.xz
Merge remote-tracking branch 'thickbrick/exp' into exp
-rw-r--r--linden/indra/newview/lltoolpie.cpp4
-rw-r--r--linden/indra/newview/llviewerobject.cpp10
2 files changed, 10 insertions, 4 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp
index a70169c..429b9d4 100644
--- a/linden/indra/newview/lltoolpie.cpp
+++ b/linden/indra/newview/lltoolpie.cpp
@@ -805,8 +805,8 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
805 } 805 }
806 806
807 const LLTextureEntry* tep = object->getTE(mPick.mObjectFace); 807 const LLTextureEntry* tep = object->getTE(mPick.mObjectFace);
808 viewer_media_t media_impl = LLViewerMedia::getMediaImplFromTextureID(tep->getID()); 808 viewer_media_t media_impl = tep ? LLViewerMedia::getMediaImplFromTextureID(tep->getID()) : NULL;
809 if (tep && media_impl.notNull() && media_impl->hasMedia()) 809 if (media_impl.notNull() && media_impl->hasMedia())
810 { 810 {
811 LL_DEBUGS("DoubleClicks") << "Double clicked running parcel media" << LL_ENDL; 811 LL_DEBUGS("DoubleClicks") << "Double clicked running parcel media" << LL_ENDL;
812 return FALSE; 812 return FALSE;
diff --git a/linden/indra/newview/llviewerobject.cpp b/linden/indra/newview/llviewerobject.cpp
index e622a7f..576f312 100644
--- a/linden/indra/newview/llviewerobject.cpp
+++ b/linden/indra/newview/llviewerobject.cpp
@@ -4013,9 +4013,15 @@ LLBBox LLViewerObject::getBoundingBoxAgent() const
4013{ 4013{
4014 LLVector3 position_agent; 4014 LLVector3 position_agent;
4015 LLQuaternion rot; 4015 LLQuaternion rot;
4016 LLViewerObject* avatar_parent = NULL;
4016 LLViewerObject* root_edit = (LLViewerObject*)getRootEdit(); 4017 LLViewerObject* root_edit = (LLViewerObject*)getRootEdit();
4017 LLViewerObject* avatar_parent = (LLViewerObject*)root_edit->getParent(); 4018 if (root_edit)
4018 if (avatar_parent && avatar_parent->isAvatar() && root_edit && root_edit->mDrawable.notNull()) 4019 {
4020 avatar_parent = (LLViewerObject*)root_edit->getParent();
4021 }
4022
4023 if (avatar_parent && avatar_parent->isAvatar() &&
4024 root_edit && root_edit->mDrawable.notNull() && root_edit->mDrawable->getXform()->getParent())
4019 { 4025 {
4020 LLXform* parent_xform = root_edit->mDrawable->getXform()->getParent(); 4026 LLXform* parent_xform = root_edit->mDrawable->getXform()->getParent();
4021 position_agent = (getPositionEdit() * parent_xform->getWorldRotation()) + parent_xform->getWorldPosition(); 4027 position_agent = (getPositionEdit() * parent_xform->getWorldRotation()) + parent_xform->getWorldPosition();