Exemple #1
0
 def poll(self, context):
     if context.mode == 'PAINT_WEIGHT': return
     return Get.selected_pose_bones(context) or Get.selected_bones(context)
Exemple #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