Skip to content
Snippets Groups Projects
Commit d3299824 authored by Demeter Dzadik's avatar Demeter Dzadik Committed by Alexander Gavrilov
Browse files

Rigify: allow passing Armature "targets" as a kwarg for make_constraint.

It seems like the make_constraint() function was designed to allow fully
defining a constraint with a single call, but currently when creating
Armature constraints, its targets have to be created separately after
the make_constraint() call.

This patch addresses this, allowing you to pass a "targets" dictionary.
Armature constraint targets only have three properties, which are "target",
"subtarget" and "weight". For convenience, since 99.99% of the times the
"target" will be the rig, that doesn't have to be specified, but it can be.

Differential Revision: https://developer.blender.org/D9092
parent 0d55b1f9
No related branches found
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment