Fix T49151: ParticleSettings' usercount not decremented when removing a psys from an object.
This commit is contained in:
parent
5849651a46
commit
fef0cd8191
Notes:
blender-bot
2023-02-14 07:39:49 +01:00
Referenced by issue #49201, Mesh with OpenSubdiv subsurf and a texture disappears in Material viewport mode. Referenced by issue #49183, Bevel segments bug Referenced by issue #49174, Y rotation of objects stuttering when X/Z axis are locked Referenced by issue #49175, PBR crashes testbuild 2.78 ver2 Referenced by issue #49151, Can't unlink particle systems (nor set to 0 users)
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue