Instance dependency for particles was not being get rid of. Again fixes #15591

This commit is contained in:
Juan Linietsky 2018-01-12 09:11:27 -03:00
parent 2dbd3475a5
commit 3a05d974e0

View file

@ -6950,6 +6950,7 @@ bool RasterizerStorageGLES3::free(RID p_rid) {
memdelete(cls);
} else if (particles_owner.owns(p_rid)) {
Particles *particles = particles_owner.get(p_rid);
particles->instance_remove_deps();
particles_owner.free(p_rid);
memdelete(particles);
} else {