diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-09-08 16:05:49 +0100 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-09-08 16:05:49 +0100 |
commit | 2aa890da0bd8b42493745daa736c5ed9451bbf91 (patch) | |
tree | ff1af773b8300a7e804c4bb90d3ef2a2e59ab8ba /indra/newview/llviewerobject.cpp | |
parent | 943a1f3e802ee75683266a9a5d24ae4610207232 (diff) |
SL-718 - better support for transforms of animated attachments
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index e2fbac023a..34e7bc0fad 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -5188,10 +5188,15 @@ LLVOAvatar* LLViewerObject::asAvatar() return NULL; } -// If this object is directly or indirectly parented by an avatar, return it. +// If this object is directly or indirectly parented by an avatar, +// return it. Normally getAvatar() is the correct function to call; +// it will give the avatar used for skinning. The exception is with +// animated objects that are also attachments; in that case, +// getAvatar() will return the control avatar, used for skinning, and +// getAvatarAncestor will return the avatar to which the object is +// attached. LLVOAvatar* LLViewerObject::getAvatarAncestor() { - LL_ERRS("AXON") << "this method has been targetted for termination. Use getAvatar()." << LL_ENDL; LLViewerObject *pobj = (LLViewerObject*) getParent(); while (pobj) { |