properly set emitting when particles restart

This commit is contained in:
clayjohn
2019-06-21 22:33:11 -07:00
parent 5a29be31b3
commit 64ecc8a5a3
13 changed files with 40 additions and 7 deletions

View File

@@ -225,6 +225,8 @@ void CPUParticles::restart() {
frame_remainder = 0;
cycle = 0;
set_emitting(true);
{
int pc = particles.size();
PoolVector<Particle>::Write w = particles.write();