diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-01-22 22:08:06 +0000 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-01-22 22:08:06 +0000 |
commit | 26add5700d88338b94ce891892948998b0468131 (patch) | |
tree | 592c0295c96f3b48f9c75a0c0452709abe305bd3 /indra/newview/llviewerobject.cpp | |
parent | cddb530b4de1521f59261dd53498e49a4050191b (diff) |
MAINT-8159 - animation state management during link/unlink commands
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index ee67f5062e..0d515b28d0 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -879,9 +879,18 @@ void LLViewerObject::addChild(LLViewerObject *childp) if(childp->setParent(this)) { mChildList.push_back(childp); + childp->afterReparent(); } } +void LLViewerObject::onReparent(LLViewerObject *old_parent, LLViewerObject *new_parent) +{ +} + +void LLViewerObject::afterReparent() +{ +} + void LLViewerObject::removeChild(LLViewerObject *childp) { for (child_list_t::iterator i = mChildList.begin(); i != mChildList.end(); ++i) @@ -2990,6 +2999,7 @@ void LLViewerObject::linkControlAvatar() if (getControlAvatar()) { getControlAvatar()->rebuildAttachmentOverrides(); + getControlAvatar()->updateAnimations(); } else { |