diff options
author | Dave Parks <davep@lindenlab.com> | 2010-09-19 23:07:15 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-09-19 23:07:15 -0500 |
commit | 90da6d6fdc33343be72252101aed1be641e822b5 (patch) | |
tree | 66f6045cdf869324d16a57af613ab8213fedab42 /indra/newview/llviewerobject.cpp | |
parent | 3cda7606380109beb3f331b8b53d38914f8ba8f5 (diff) |
Raycasting for rigged attachments now works for your own attachments while in edit mode.
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index fd2212f25d..4c1a1958e8 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -3279,6 +3279,15 @@ const LLVector3 LLViewerObject::getPositionEdit() const const LLVector3 LLViewerObject::getRenderPosition() const { + if (mDrawable.notNull() && mDrawable->isState(LLDrawable::RIGGED)) + { + LLVOAvatar* avatar = getAvatar(); + if (avatar) + { + return avatar->getPositionAgent(); + } + } + if (mDrawable.isNull() || mDrawable->getGeneration() < 0) { return getPositionAgent(); @@ -3297,6 +3306,11 @@ const LLVector3 LLViewerObject::getPivotPositionAgent() const const LLQuaternion LLViewerObject::getRenderRotation() const { LLQuaternion ret; + if (mDrawable.notNull() && mDrawable->isState(LLDrawable::RIGGED)) + { + return ret; + } + if (mDrawable.isNull() || mDrawable->isStatic()) { ret = getRotationEdit(); |