diff options
author | McCabe Maxsted | 2010-06-05 19:48:10 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:31 -0500 |
commit | 64358b62e210419b85318a6741bfbbdcf1ac52ec (patch) | |
tree | 96b3e06050dd5e5bcc64189953d29a8df3929407 /linden/indra/newview/llglsandbox.cpp | |
parent | Reverted cedce34e in favor of the coolviewer anti-show look at patch (fixes t... (diff) | |
download | meta-impy-64358b62e210419b85318a6741bfbbdcf1ac52ec.zip meta-impy-64358b62e210419b85318a6741bfbbdcf1ac52ec.tar.gz meta-impy-64358b62e210419b85318a6741bfbbdcf1ac52ec.tar.bz2 meta-impy-64358b62e210419b85318a6741bfbbdcf1ac52ec.tar.xz |
Made PrivateLookAtTarget actually disable sending your show look at info with the CV patch
Diffstat (limited to 'linden/indra/newview/llglsandbox.cpp')
-rw-r--r-- | linden/indra/newview/llglsandbox.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/linden/indra/newview/llglsandbox.cpp b/linden/indra/newview/llglsandbox.cpp index a316069..e9077a9 100644 --- a/linden/indra/newview/llglsandbox.cpp +++ b/linden/indra/newview/llglsandbox.cpp | |||
@@ -73,11 +73,13 @@ BOOL LLAgent::setLookAt(ELookAtType target_type, LLViewerObject *object, LLVecto | |||
73 | { | 73 | { |
74 | if (object && target_type != LOOKAT_TARGET_NONE && gSavedSettings.getBOOL("PrivateLookAtTarget")) | 74 | if (object && target_type != LOOKAT_TARGET_NONE && gSavedSettings.getBOOL("PrivateLookAtTarget")) |
75 | { | 75 | { |
76 | if ((object->getPositionGlobal() - gAgent.getPositionGlobal()).magVec() > 20.0) | 76 | target_type = LOOKAT_TARGET_NONE; |
77 | object = mAvatarObject; | ||
78 | position.clearVec(); | ||
79 | LLViewerObject* source_obj = mLookAt->getSourceObject(); | ||
80 | if (source_obj) | ||
77 | { | 81 | { |
78 | target_type = LOOKAT_TARGET_NONE; | 82 | mLookAt->setTargetObject(source_obj); |
79 | object = mAvatarObject; | ||
80 | position.clearVec(); | ||
81 | } | 83 | } |
82 | } | 84 | } |
83 | 85 | ||
@@ -114,12 +116,9 @@ BOOL LLAgent::setPointAt(EPointAtType target_type, LLViewerObject *object, LLVec | |||
114 | 116 | ||
115 | if (object && target_type != POINTAT_TARGET_NONE && gSavedSettings.getBOOL("PrivateLookAtTarget")) | 117 | if (object && target_type != POINTAT_TARGET_NONE && gSavedSettings.getBOOL("PrivateLookAtTarget")) |
116 | { | 118 | { |
117 | if ((object->getPositionGlobal() - gAgent.getPositionGlobal()).magVec() > 20.0) | 119 | target_type = POINTAT_TARGET_NONE; |
118 | { | 120 | object = NULL; |
119 | target_type = POINTAT_TARGET_NONE; | 121 | position.clearVec(); |
120 | object = NULL; | ||
121 | position.clearVec(); | ||
122 | } | ||
123 | } | 122 | } |
124 | 123 | ||
125 | if(!mPointAt || mPointAt->isDead()) | 124 | if(!mPointAt || mPointAt->isDead()) |