diff options
author | Graham Linden <graham@lindenlab.com> | 2013-11-11 15:50:01 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2013-11-11 15:50:01 -0800 |
commit | 10705b43600d31b31d903ed1d4e3aba0bd4e2963 (patch) | |
tree | df43426032ec82dc34f9019a063a4cdfa00be1da /indra/newview/llagent.cpp | |
parent | 66b6bffca92261d418f9888be4c3542554ddb4af (diff) | |
parent | ebc9bcbf69f7a519677a6522979a6bf6cbb04bb8 (diff) |
Merge 3.6.11 for RC-ability
Diffstat (limited to 'indra/newview/llagent.cpp')
-rwxr-xr-x | indra/newview/llagent.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 9cee0aa867..79da9e5873 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1092,10 +1092,18 @@ const LLVector3d &LLAgent::getPositionGlobal() const //----------------------------------------------------------------------------- const LLVector3 &LLAgent::getPositionAgent() { - if (isAgentAvatarValid() && !gAgentAvatarp->mDrawable.isNull()) + if (isAgentAvatarValid()) + { + if(gAgentAvatarp->mDrawable.isNull()) { - mFrameAgent.setOrigin(gAgentAvatarp->getRenderPosition()); + mFrameAgent.setOrigin(gAgentAvatarp->getPositionAgent()); } + else + { + mFrameAgent.setOrigin(gAgentAvatarp->getRenderPosition()); + } + } + return mFrameAgent.getOrigin(); } |