Blender Git Commit Log

Git Commits -> Revision 6fbeb6e

Revision 6fbeb6e by Erik Abrahamsson (master)
December 28, 2020, 17:18 (GMT)
Add operator to copy a modifier to all selected objects

These two operators (one for grease pencil, one for other objects)
copy a single modifier from the active object to all selected objects.
The operators are exposed in the dropdown menus in modifier headers.

Note that It's currently possible to drag and drop modifiers between
objects in the outliner, but that only works for dragging to one object
at a time. Modifiers can also be copied with the "Make Links" operator,
but that copies *all* modifiers rather than just one. The placement
and scope of these new operators allow for more useful poll messages
and error messages as well.

Every object type that supports modifiers is supported. Although hook
and collision modifiers aren't supported because of an unexplained
comment in `BKE_object_copy_modifier`, other than that, every modifier
type is supported, including particle systems, nodes modifiers, etc.

The new modifiers are set active, which required two small tweaks to
`object.c` and `particle.c`.

Reviewed By: Hans Goudey (with additional edits)

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

Commit Details:

Full Hash: 6fbeb6e2e05408af448e9409f8e7e11470f82db6
Parent Commit: 7f3601e
Committed By: Hans Goudey
Lines Changed: +348, -0

9 Modified Paths:

/source/blender/blenkernel/BKE_object.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/particle.c (+2, -0) (Diff)
/source/blender/editors/object/object_gpencil_modifier.c (+96, -0) (Diff)
/source/blender/editors/object/object_intern.h (+2, -0) (Diff)
/source/blender/editors/object/object_modifier.c (+225, -0) (Diff)
/source/blender/editors/object/object_ops.c (+2, -0) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+5, -0) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021