Ejemplo n.º 1
0
 def poll(self, context):
     if context.mode == 'PAINT_WEIGHT': return
     return Get.selected_pose_bones(context) or Get.selected_bones(context)
Ejemplo n.º 2
0
 def poll(self, context):
     if (context.mode == 'POSE'):
         return len(Get.selected_pose_bones(context)) > 1
     elif (context.mode == 'EDIT_ARMATURE'):
         return len([b
                     for b in Get.selected_bones(context) if b.select]) > 1