Blender Git Commit Log

Git Commits -> Revision 38bdde8

Revision 38bdde8 by Robert Guetzkow (master)
August 24, 2021, 16:41 (GMT)
Fix T90715: Remove correct particle modifier through Python API

Before this patch attempting to remove a particle modifier programmatically
through Python would fail, because it deleted the modifier associated with
the currently active particle system instead of the one passed as an argument
to `bpy.types.ObjectModifiers.remove()`.

This fix adds an additional argument for the particle system to
`object_remove_particle_system`. This allows to specify which particle system
and its associated modifier shall be removed. In case of
`particle_system_remove_exec` it will remain the currently active particle
system, whereas `object_remove_particle_system` passes the particle system
of the modifier. Hence, the correct modifier will be removed.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D12234

Commit Details:

Full Hash: 38bdde852f1c38a2eaba2b8efc15b49f226baffd
Parent Commit: 551521c
Lines Changed: +15, -9

4 Modified Paths:

/source/blender/blenkernel/BKE_particle.h (+4, -1) (Diff)
/source/blender/blenkernel/intern/particle.c (+8, -6) (Diff)
/source/blender/editors/object/object_modifier.c (+1, -1) (Diff)
/source/blender/editors/physics/particle_object.c (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021