summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-11-11 10:17:03 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-11-11 10:17:03 -0500
commitde487038fc034c470a21e9d6c5bf78e5085ae4a2 (patch)
tree771d1658018d60b8cf22677a1de52addd040997e /indra/newview/llvoavatar.cpp
parent5fb30e5ad3615c0b0e9e67a94542dbb110e9ed95 (diff)
MAINT-6915 - fixed a bug in Reset Skeletons And Animations. For self avatar, this will now be equivalent to reset skeleton + stop animating me.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 77a526f518..b25ced4b7e 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -1914,7 +1914,18 @@ void LLVOAvatar::resetSkeleton(bool reset_animations)
// Animations
if (reset_animations)
{
- resetAnimations();
+ if (isSelf())
+ {
+ // This is equivalent to "Stop Animating Me". Will reset
+ // all animations and propagate the changes to other
+ // viewers.
+ gAgent.stopCurrentAnimations();
+ }
+ else
+ {
+ // Local viewer-side reset for non-self avatars.
+ resetAnimations();
+ }
}
LL_DEBUGS("Avatar") << avString() << " reset ends" << LL_ENDL;