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:

Commit Details:

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

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2022