Merge pull request #29974 from clayjohn/particles_restart

Properly set emitting when particles restart
This commit is contained in:
Rémi Verschelde 2019-06-24 13:48:56 +02:00 committed by GitHub
commit 25022a1d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();