diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-19 14:29:15 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-19 14:31:58 +0300 |
commit | d01e0d1ef1c4ddc45ee8e054aae7b08bbe57d0bf (patch) | |
tree | a9c7fee9ede3ff6df64378b3de67d6d31040dc0e /release | |
parent | 51b2d06613bb3a11a04f051d7dabaa6530a0e5c0 (diff) |
CTX_DATA_BEGIN for active object only (..._from_active_object)
For now only `selected_pose_bones_from_active_object`, more options can
be added on demand.
Discussed this with Campbell Barton. We may need this only for selected
pose bones, time will tell.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/keyingsets_builtins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/keyingsets_builtins.py b/release/scripts/startup/keyingsets_builtins.py index 829473aa682..9ba32150bbe 100644 --- a/release/scripts/startup/keyingsets_builtins.py +++ b/release/scripts/startup/keyingsets_builtins.py @@ -538,7 +538,7 @@ class BUILTIN_KSI_WholeCharacterSelected(KeyingSetInfo): # iterator - all bones regardless of selection def iterator(ksi, context, ks): # Use either the selected bones, or all of them if none are selected. - bones = [b for b in context.active_object.pose.bones if b.bone.select] or context.active_object.pose.bones + bones = context.selected_pose_bones_from_active_object or context.active_object.pose.bones for bone in bones: if bone.name.startswith(BUILTIN_KSI_WholeCharacter.badBonePrefixes): |