Blender Git Commit Log

Git Commits -> Revision 6ba45fe

August 16, 2021, 04:19 (GMT)
Add Extras Dropdown Menu to Constraints

Add Apply Constraint, Duplicate Constraint, and Copy To Selected
operators, and include them in a menu similar to the menu for modifiers.
The shortcuts in the extras menu are also matched to modifiers.

All the here added operators are intended to work exactly like the
analogous ones for modifiers. That means the apply operator should apply
a constraint as if it was first in the list, just like modifiers do. I
have added the same warning message as for modifiers when that happens.

The decision to use this approach of appling the constraint as if it was
first, was made for consistency with modifiers. People are already used
to how it works there. Is also provides more intricate control over the
applied transforms, then just applying all constraints up to that one.
Apply all constraints is already kinda implemented in Bake Animation.

Reviewed By: HooglyBoogly, sybren, #user_interface

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

Commit Details:

Full Hash: 6ba45fee77f5900585587cbfd0f329c53cc6c40b
Parent Commit: bb3d6d7
Committed By: YimingWu
Lines Changed: +543, -20

10 Modified Paths:

/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+2, -0) (Diff)
/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_constraint.h (+22, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+105, -0) (Diff)
/source/blender/draw/engines/overlay/overlay_extra.c (+2, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+81, -13) (Diff)
/source/blender/editors/object/object_constraint.c (+318, -6) (Diff)
/source/blender/editors/object/object_intern.h (+3, -0) (Diff)
/source/blender/editors/object/object_ops.c (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021