Fix T49151: ParticleSettings' usercount not decremented when removing a psys from an object.

This commit is contained in:
2016-08-26 20:29:40 +02:00
parent 5849651a46
commit fef0cd8191

View File

@@ -3172,6 +3172,9 @@ void object_remove_particle_system(Scene *UNUSED(scene), Object *ob)
/* clear particle system */
BLI_remlink(&ob->particlesystem, psys);
if (psys->part) {
id_us_min(&psys->part->id);
}
psys_free(ob, psys);
if (ob->particlesystem.first)