This commit is contained in:
Wojtek Figat
2025-12-14 23:03:34 +01:00
parent 76700c0b24
commit 056de752ed
2 changed files with 5 additions and 5 deletions

View File

@@ -574,7 +574,7 @@ void AnimatedModel::PauseSlotAnimation(const StringView& slotName, Animation* an
{
for (auto& slot : GraphInstance.Slots)
{
if (slot.Animation == anim && slot.Name == slotName)
if ((slot.Animation == anim || anim == nullptr) && slot.Name == slotName)
{
slot.Pause = true;
break;