Cleanup: make format
This commit is contained in:
parent
6f6fd99dbb
commit
61f982f0d1
|
@ -449,22 +449,22 @@ class ARMATURE_OT_sync_bone_color_to_selected(Operator):
|
||||||
return context.mode in {'EDIT_ARMATURE', 'POSE'}
|
return context.mode in {'EDIT_ARMATURE', 'POSE'}
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
match (self.bone_type, context.mode):
|
match(self.bone_type, context.mode):
|
||||||
# Armature in edit mode:
|
# Armature in edit mode:
|
||||||
case ('POSE', 'EDIT_ARMATURE'):
|
case('POSE', 'EDIT_ARMATURE'):
|
||||||
self.report({'ERROR'}, "Go to pose mode to copy pose bone colors")
|
self.report({'ERROR'}, "Go to pose mode to copy pose bone colors")
|
||||||
return {'OPERATOR_CANCELLED'}
|
return {'OPERATOR_CANCELLED'}
|
||||||
case ('EDIT', 'EDIT_ARMATURE'):
|
case('EDIT', 'EDIT_ARMATURE'):
|
||||||
bone_source = context.active_bone
|
bone_source = context.active_bone
|
||||||
bones_dest = context.selected_bones
|
bones_dest = context.selected_bones
|
||||||
pose_bones_to_check = []
|
pose_bones_to_check = []
|
||||||
|
|
||||||
# Armature in pose mode:
|
# Armature in pose mode:
|
||||||
case ('POSE', 'POSE'):
|
case('POSE', 'POSE'):
|
||||||
bone_source = context.active_pose_bone
|
bone_source = context.active_pose_bone
|
||||||
bones_dest = context.selected_pose_bones
|
bones_dest = context.selected_pose_bones
|
||||||
pose_bones_to_check = []
|
pose_bones_to_check = []
|
||||||
case ('EDIT', 'POSE'):
|
case('EDIT', 'POSE'):
|
||||||
bone_source = context.active_bone
|
bone_source = context.active_bone
|
||||||
pose_bones_to_check = context.selected_pose_bones
|
pose_bones_to_check = context.selected_pose_bones
|
||||||
bones_dest = [posebone.bone for posebone in pose_bones_to_check]
|
bones_dest = [posebone.bone for posebone in pose_bones_to_check]
|
||||||
|
|
|
@ -24,7 +24,10 @@ class TestBlendFileOpenAllTestFiles(TestHelper):
|
||||||
"explode_modifier.blend",
|
"explode_modifier.blend",
|
||||||
|
|
||||||
# tests/depsgraph/deg_anim_camera_dof_driving_material.blend
|
# tests/depsgraph/deg_anim_camera_dof_driving_material.blend
|
||||||
# ERROR (bke.fcurve): source/blender/blenkernel/intern/fcurve_driver.cc:188 dtar_get_prop_val: Driver Evaluation Error: cannot resolve target for OBCamera -> data.dof_distance
|
# ERROR (bke.fcurve):
|
||||||
|
# source/blender/blenkernel/intern/fcurve_driver.cc:188 dtar_get_prop_val:
|
||||||
|
# Driver Evaluation Error: cannot resolve target for OBCamera ->
|
||||||
|
# data.dof_distance
|
||||||
"deg_anim_camera_dof_driving_material.blend",
|
"deg_anim_camera_dof_driving_material.blend",
|
||||||
|
|
||||||
# tests/depsgraph/deg_driver_shapekey_same_datablock.blend
|
# tests/depsgraph/deg_driver_shapekey_same_datablock.blend
|
||||||
|
|
|
@ -2135,7 +2135,7 @@ def main() -> int:
|
||||||
verbose_edit_actions = False
|
verbose_edit_actions = False
|
||||||
verbose_all_from_args = args.verbose.split(",") if args.verbose else []
|
verbose_all_from_args = args.verbose.split(",") if args.verbose else []
|
||||||
while verbose_all_from_args:
|
while verbose_all_from_args:
|
||||||
match (verbose_id := verbose_all_from_args.pop()):
|
match(verbose_id := verbose_all_from_args.pop()):
|
||||||
case "compile":
|
case "compile":
|
||||||
verbose_compile = True
|
verbose_compile = True
|
||||||
case "edit_actions":
|
case "edit_actions":
|
||||||
|
|
Loading…
Reference in New Issue