[Bf-blender-cvs] [c462c43c1a0] blender2.8: Multi-Objects: POSELIB_OT_pose_add

Dalai Felinto noreply at git.blender.org
Sat Oct 13 00:55:01 CEST 2018


Commit: c462c43c1a050650a4328ea9291630964dd3c1ae
Author: Dalai Felinto
Date:   Fri Oct 12 19:51:11 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBc462c43c1a050650a4328ea9291630964dd3c1ae

Multi-Objects: POSELIB_OT_pose_add

Make it work only for the active object bones

===================================================================

M	release/scripts/startup/keyingsets_builtins.py

===================================================================

diff --git a/release/scripts/startup/keyingsets_builtins.py b/release/scripts/startup/keyingsets_builtins.py
index 09b2f9cd430..829473aa682 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 = 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):



More information about the Bf-blender-cvs mailing list