aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to '')
-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: