aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-04-26 22:24:51 -0700
committerMcCabe Maxsted2011-04-26 22:24:51 -0700
commit41916181cc2056dd8c7b4a23f8dcab637aa1fb8b (patch)
treed431067be5f3a7c5c783ce225f8ddb69465f73a8 /linden/indra
parentAdded DirectX SDKs june 2010 and march 2009 to cmake (diff)
downloadmeta-impy-41916181cc2056dd8c7b4a23f8dcab637aa1fb8b.zip
meta-impy-41916181cc2056dd8c7b4a23f8dcab637aa1fb8b.tar.gz
meta-impy-41916181cc2056dd8c7b4a23f8dcab637aa1fb8b.tar.bz2
meta-impy-41916181cc2056dd8c7b4a23f8dcab637aa1fb8b.tar.xz
Backported crash fix in llhudeffectlookat from gpl'd viewer 2
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llhudeffectlookat.cpp5
-rw-r--r--linden/indra/newview/llvoavatar.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/llhudeffectlookat.cpp b/linden/indra/newview/llhudeffectlookat.cpp
index ccd723f..333bd13 100644
--- a/linden/indra/newview/llhudeffectlookat.cpp
+++ b/linden/indra/newview/llhudeffectlookat.cpp
@@ -702,6 +702,11 @@ bool LLHUDEffectLookAt::calcTargetPosition()
702 702
703 LLVOAvatar* source_avatar = (LLVOAvatar*)(LLViewerObject*)mSourceObject; 703 LLVOAvatar* source_avatar = (LLVOAvatar*)(LLViewerObject*)mSourceObject;
704 704
705 if (!source_avatar->isBuilt())
706 {
707 return false;
708 }
709
705 if (target_obj && target_obj->mDrawable.notNull()) 710 if (target_obj && target_obj->mDrawable.notNull())
706 { 711 {
707 LLQuaternion target_rot; 712 LLQuaternion target_rot;
diff --git a/linden/indra/newview/llvoavatar.h b/linden/indra/newview/llvoavatar.h
index 4d08bf0..b9e4d17 100644
--- a/linden/indra/newview/llvoavatar.h
+++ b/linden/indra/newview/llvoavatar.h
@@ -231,6 +231,7 @@ public:
231 231
232 BOOL isVisible(); 232 BOOL isVisible();
233 BOOL isSelf() const { return mIsSelf; } 233 BOOL isSelf() const { return mIsSelf; }
234 bool isBuilt() const { return mIsBuilt; }
234 BOOL isCulled() const { return mCulled; } 235 BOOL isCulled() const { return mCulled; }
235 236
236public: 237public: