1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Remove non-looping effects after rest

This commit is contained in:
Andrei Kortunov 2018-10-01 21:57:13 +04:00
parent 3896a2eba6
commit 07ccc5abdb

View file

@ -1683,7 +1683,10 @@ namespace MWMechanics
MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(iter->first); MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(iter->first);
if (animation) if (animation)
animation->updateEffects(); {
animation->removeEffects();
MWBase::Environment::get().getWorld()->applyLoopingParticles(iter->first);
}
} }