Cleanup: tweak multi-line parenthesis for Python scripts
Reduce right shift, moving closing parenthesis onto own line for clarity & reducing diff noise in some cases. Ref !147857
This commit is contained in:
@@ -880,9 +880,11 @@ def km_screen(params):
|
||||
|
||||
def km_screen_editing(params):
|
||||
items = []
|
||||
keymap = ("Screen Editing",
|
||||
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
|
||||
{"items": items})
|
||||
keymap = (
|
||||
"Screen Editing",
|
||||
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
|
||||
{"items": items},
|
||||
)
|
||||
|
||||
items.extend([
|
||||
# Action zones
|
||||
@@ -1426,7 +1428,7 @@ def km_uv_editor(params):
|
||||
(
|
||||
"uv.move_on_axis",
|
||||
{"type": key, "value": 'PRESS', **mod_dict},
|
||||
{"properties": [("axis", axis), ("type", move_type), ("distance", distance)]}
|
||||
{"properties": [("axis", axis), ("type", move_type), ("distance", distance)]},
|
||||
)
|
||||
for mod_dict, move_type in (
|
||||
({"ctrl": True}, 'DYNAMIC'),
|
||||
@@ -4210,8 +4212,10 @@ def km_grease_pencil_sculpt_mode(params):
|
||||
op_menu("GREASE_PENCIL_MT_layer_active", {"type": 'Y', "value": 'PRESS'}),
|
||||
|
||||
# Auto-masking menu.
|
||||
op_menu_pie("VIEW3D_MT_grease_pencil_sculpt_automasking_pie", {
|
||||
"type": 'A', "value": 'PRESS', "shift": True, "alt": True}),
|
||||
op_menu_pie(
|
||||
"VIEW3D_MT_grease_pencil_sculpt_automasking_pie",
|
||||
{"type": 'A', "value": 'PRESS', "shift": True, "alt": True},
|
||||
),
|
||||
("wm.context_menu_enum", {"type": 'E', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("data_path", "tool_settings.gpencil_sculpt_paint.brush.stroke_method")]}),
|
||||
|
||||
|
||||
@@ -261,9 +261,11 @@ def km_screen(params):
|
||||
|
||||
def km_screen_editing(params):
|
||||
items = []
|
||||
keymap = ("Screen Editing",
|
||||
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
|
||||
{"items": items})
|
||||
keymap = (
|
||||
"Screen Editing",
|
||||
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
|
||||
{"items": items},
|
||||
)
|
||||
|
||||
items.extend([
|
||||
# Action zones
|
||||
@@ -2703,15 +2705,16 @@ def _template_paint_radial_control(
|
||||
items.extend([
|
||||
("wm.radial_control", {"type": 'F', "value": 'PRESS', "ctrl": True, "alt": True},
|
||||
radial_control_properties(
|
||||
paint, "mask_texture_slot.angle", None, secondary_rotation=secondary_rotation, color=color)),
|
||||
paint, "mask_texture_slot.angle", None, secondary_rotation=secondary_rotation, color=color,
|
||||
)),
|
||||
])
|
||||
|
||||
if weight:
|
||||
items.extend([
|
||||
("wm.radial_control", {"type": 'F', "value": 'PRESS', "ctrl": True, "alt": True},
|
||||
radial_control_properties(
|
||||
paint, "mask_texture_slot.angle", None, secondary_rotation=secondary_rotation, color=color)),
|
||||
|
||||
paint, "mask_texture_slot.angle", None, secondary_rotation=secondary_rotation, color=color,
|
||||
)),
|
||||
("wm.radial_control", {"type": 'F', "value": 'PRESS', "ctrl": True},
|
||||
radial_control_properties(
|
||||
paint, "weight", "use_unified_weight"))
|
||||
@@ -2766,8 +2769,10 @@ def km_image_paint(params):
|
||||
("wm.context_toggle", {"type": 'L', "value": 'PRESS'},
|
||||
{"properties": [("data_path", "tool_settings.image_paint.brush.use_smooth_stroke")]}),
|
||||
# Context menu.
|
||||
*_template_items_context_panel("VIEW3D_PT_paint_texture_context_menu",
|
||||
{"type": 'RIGHTMOUSE', "value": 'PRESS'}),
|
||||
*_template_items_context_panel(
|
||||
"VIEW3D_PT_paint_texture_context_menu",
|
||||
{"type": 'RIGHTMOUSE', "value": 'PRESS'},
|
||||
),
|
||||
# Tools
|
||||
op_tool_cycle("builtin.select_box", {"type": 'Q', "value": 'PRESS'}),
|
||||
op_tool_cycle("builtin.annotate", {"type": 'D', "value": 'PRESS'}),
|
||||
|
||||
Reference in New Issue
Block a user