Multi-Objects: POSELIB_OT_pose_add
Make it work only for the active object bones
This commit is contained in:
parent
cf74a6db7e
commit
c462c43c1a
|
@ -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 = context.selected_pose_bones or context.active_object.pose.bones
|
||||
bones = [b for b in context.active_object.pose.bones if b.bone.select] or context.active_object.pose.bones
|
||||
|
||||
for bone in bones:
|
||||
if bone.name.startswith(BUILTIN_KSI_WholeCharacter.badBonePrefixes):
|
||||
|
|
Loading…
Reference in New Issue