Multi-Objects: POSELIB_OT_pose_add

Make it work only for the active object bones
This commit is contained in:
Dalai Felinto 2018-10-12 19:51:11 -03:00
parent cf74a6db7e
commit c462c43c1a
1 changed files with 1 additions and 1 deletions

View File

@ -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):