aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llglsandbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llglsandbox.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/linden/indra/newview/llglsandbox.cpp b/linden/indra/newview/llglsandbox.cpp
index e9077a9..3acfbf3 100644
--- a/linden/indra/newview/llglsandbox.cpp
+++ b/linden/indra/newview/llglsandbox.cpp
@@ -71,18 +71,6 @@
71 71
72BOOL LLAgent::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVector3 position) 72BOOL LLAgent::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVector3 position)
73{ 73{
74 if (object && target_type != LOOKAT_TARGET_NONE && gSavedSettings.getBOOL("PrivateLookAtTarget"))
75 {
76 target_type = LOOKAT_TARGET_NONE;
77 object = mAvatarObject;
78 position.clearVec();
79 LLViewerObject* source_obj = mLookAt->getSourceObject();
80 if (source_obj)
81 {
82 mLookAt->setTargetObject(source_obj);
83 }
84 }
85
86 if(object && object->isAttachment()) 74 if(object && object->isAttachment())
87 { 75 {
88 LLViewerObject* parent = object; 76 LLViewerObject* parent = object;
@@ -109,18 +97,12 @@ BOOL LLAgent::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVecto
109BOOL LLAgent::setPointAt(EPointAtType target_type, LLViewerObject *object, LLVector3 position) 97BOOL LLAgent::setPointAt(EPointAtType target_type, LLViewerObject *object, LLVector3 position)
110{ 98{
111 // disallow pointing at attachments and avatars 99 // disallow pointing at attachments and avatars
112 if (object && (object->isAttachment() || object->isAvatar())) 100 bool private_pointat = gSavedSettings.getBOOL("PrivatePointAtTarget");//this is the arm motion
101 if (object && (object->isAttachment() || object->isAvatar() || private_pointat))
113 { 102 {
114 return FALSE; 103 return FALSE;
115 } 104 }
116 105
117 if (object && target_type != POINTAT_TARGET_NONE && gSavedSettings.getBOOL("PrivateLookAtTarget"))
118 {
119 target_type = POINTAT_TARGET_NONE;
120 object = NULL;
121 position.clearVec();
122 }
123
124 if(!mPointAt || mPointAt->isDead()) 106 if(!mPointAt || mPointAt->isDead())
125 { 107 {
126 mPointAt = (LLHUDEffectPointAt *)LLHUDManager::getInstance()->createViewerEffect(LLHUDObject::LL_HUD_EFFECT_POINTAT); 108 mPointAt = (LLHUDEffectPointAt *)LLHUDManager::getInstance()->createViewerEffect(LLHUDObject::LL_HUD_EFFECT_POINTAT);