Better handling stopping/resetting non-looping effect.

This commit is contained in:
Chandler Cox
2023-10-21 17:22:02 -05:00
parent 7d9991999d
commit 78aae0da5a
3 changed files with 6 additions and 7 deletions

View File

@@ -1318,8 +1318,8 @@ void ParticlesSystem::Job(int32 index)
emitterInstance.Buffer = nullptr;
}
}
// Set is playing to false because it is not playing anymore.
effect->Pause();
// Stop playing effect.
effect->Stop();
return;
}
}