diff options
author | McCabe Maxsted | 2011-04-26 22:24:51 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-26 22:24:51 -0700 |
commit | 41916181cc2056dd8c7b4a23f8dcab637aa1fb8b (patch) | |
tree | d431067be5f3a7c5c783ce225f8ddb69465f73a8 /linden/indra | |
parent | Added DirectX SDKs june 2010 and march 2009 to cmake (diff) | |
download | meta-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.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.h | 1 |
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 | ||
236 | public: | 237 | public: |