aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 9374a36..aa5e791 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -4211,12 +4211,7 @@ class LLToolsStopAllAnimations : public view_listener_t
4211{ 4211{
4212 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 4212 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
4213 { 4213 {
4214 LLVOAvatar* avatarp = gAgent.getAvatarObject(); 4214 gAgent.stopCurrentAnimations();
4215 if (avatarp)
4216 {
4217 avatarp->deactivateAllMotions();
4218 avatarp->startDefaultMotions();
4219 }
4220 return true; 4215 return true;
4221 } 4216 }
4222}; 4217};