diff options
author | Graham Linden <graham@lindenlab.com> | 2018-11-15 14:32:18 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-11-15 14:32:18 -0800 |
commit | ba1fbddc2dbc526ee89e7d79b35cf3e0a46e3add (patch) | |
tree | d779020d73e73a8eb9fa8731c362b8708c8837ef /indra/newview/llviewerjointattachment.cpp | |
parent | 2783783575a9b712eb318b450dc5e6bb17d7f7c5 (diff) | |
parent | a0a1d93fb6a74149bbef57f1d1489510247110ca (diff) |
Merge 6ish
Diffstat (limited to 'indra/newview/llviewerjointattachment.cpp')
-rw-r--r-- | indra/newview/llviewerjointattachment.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llviewerjointattachment.cpp b/indra/newview/llviewerjointattachment.cpp index 66e392ac42..cf9243a871 100644 --- a/indra/newview/llviewerjointattachment.cpp +++ b/indra/newview/llviewerjointattachment.cpp @@ -357,6 +357,25 @@ void LLViewerJointAttachment::setOriginalPosition(LLVector3& position) } //----------------------------------------------------------------------------- +// getNumAnimatedObjects() +//----------------------------------------------------------------------------- +S32 LLViewerJointAttachment::getNumAnimatedObjects() const +{ + S32 count = 0; + for (attachedobjs_vec_t::const_iterator iter = mAttachedObjects.begin(); + iter != mAttachedObjects.end(); + ++iter) + { + const LLViewerObject *attached_object = *iter; + if (attached_object->isAnimatedObject()) + { + count++; + } + } + return count; +} + +//----------------------------------------------------------------------------- // clampObjectPosition() //----------------------------------------------------------------------------- void LLViewerJointAttachment::clampObjectPosition() |