From 07ccc5abdb3f18d946a57d34ddd9161ef297bee2 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Mon, 1 Oct 2018 21:57:13 +0400 Subject: [PATCH] Remove non-looping effects after rest --- apps/openmw/mwmechanics/actors.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 92f2ba34dc..4f051f40a7 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -1683,7 +1683,10 @@ namespace MWMechanics MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(iter->first); if (animation) - animation->updateEffects(); + { + animation->removeEffects(); + MWBase::Environment::get().getWorld()->applyLoopingParticles(iter->first); + } }