aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcharacter/llmotioncontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcharacter/llmotioncontroller.cpp')
-rw-r--r--linden/indra/llcharacter/llmotioncontroller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/llcharacter/llmotioncontroller.cpp b/linden/indra/llcharacter/llmotioncontroller.cpp
index e2453c9..3ef35ec 100644
--- a/linden/indra/llcharacter/llmotioncontroller.cpp
+++ b/linden/indra/llcharacter/llmotioncontroller.cpp
@@ -546,6 +546,7 @@ void LLMotionController::updateMotionsByType(LLMotion::LLMotionBlendType anim_ty
546 { 546 {
547 if (motionp->isStopped() && mTime > motionp->getStopTime() + motionp->getEaseOutDuration()) 547 if (motionp->isStopped() && mTime > motionp->getStopTime() + motionp->getEaseOutDuration())
548 { 548 {
549 posep->setWeight(0.f);
549 deactivateMotion(motionp); 550 deactivateMotion(motionp);
550 } 551 }
551 continue; 552 continue;
@@ -572,6 +573,7 @@ void LLMotionController::updateMotionsByType(LLMotion::LLMotionBlendType anim_ty
572 } 573 }
573 else 574 else
574 { 575 {
576 posep->setWeight(0.f);
575 deactivateMotion(motionp); 577 deactivateMotion(motionp);
576 continue; 578 continue;
577 } 579 }
@@ -822,7 +824,6 @@ BOOL LLMotionController::activateMotion(LLMotion *motion, F32 time)
822//----------------------------------------------------------------------------- 824//-----------------------------------------------------------------------------
823BOOL LLMotionController::deactivateMotion(LLMotion *motion) 825BOOL LLMotionController::deactivateMotion(LLMotion *motion)
824{ 826{
825 motion->getPose()->setWeight(0.f);
826 motion->deactivate(); 827 motion->deactivate();
827 mActiveMotions.remove(motion); 828 mActiveMotions.remove(motion);
828 829