Fix stopping slot animations and playing the same frame

#1927
This commit is contained in:
Wojtek Figat
2023-12-27 23:45:55 +01:00
parent 7f4d2d8db6
commit b6337c748c
3 changed files with 8 additions and 0 deletions

View File

@@ -494,6 +494,7 @@ void AnimatedModel::StopSlotAnimation(const StringView& slotName, Animation* ani
if (slot.Animation == anim && slot.Name == slotName)
{
slot.Animation = nullptr;
slot.Reset = true;
break;
}
}