Cleanup: avoid back-slash line continuations

This commit is contained in:
Campbell Barton 2020-11-04 11:31:43 +11:00
parent ffa7bfdda5
commit 4d358855b8

@ -815,10 +815,12 @@ class VIEW3D_MT_editor_menus(Menu):
# Select Menu # Select Menu
if gp_edit: if gp_edit:
if mode_string not in {'PAINT_GPENCIL', 'WEIGHT_GPENCIL'}: if mode_string not in {'PAINT_GPENCIL', 'WEIGHT_GPENCIL'}:
if mode_string == 'SCULPT_GPENCIL' and \ if (
(ts.use_gpencil_select_mask_point or mode_string == 'SCULPT_GPENCIL' and
ts.use_gpencil_select_mask_stroke or (ts.use_gpencil_select_mask_point or
ts.use_gpencil_select_mask_segment): ts.use_gpencil_select_mask_stroke or
ts.use_gpencil_select_mask_segment)
):
layout.menu("VIEW3D_MT_select_gpencil") layout.menu("VIEW3D_MT_select_gpencil")
elif mode_string == 'EDIT_GPENCIL': elif mode_string == 'EDIT_GPENCIL':
layout.menu("VIEW3D_MT_select_gpencil") layout.menu("VIEW3D_MT_select_gpencil")
@ -6127,8 +6129,10 @@ class VIEW3D_PT_overlay_geometry(Panel):
sub.prop(overlay, "wireframe_threshold", text="Wireframe") sub.prop(overlay, "wireframe_threshold", text="Wireframe")
row = col.row(align=True) row = col.row(align=True)
if context.mode not in {'EDIT_ARMATURE', 'POSE', 'OBJECT', 'PAINT_GPENCIL',\ if context.mode not in {
'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL'}: 'EDIT_ARMATURE', 'POSE', 'OBJECT',
'PAINT_GPENCIL', 'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL',
}:
row.prop(overlay, "show_fade_inactive", text="") row.prop(overlay, "show_fade_inactive", text="")
sub = row.row() sub = row.row()
sub.active = overlay.show_fade_inactive sub.active = overlay.show_fade_inactive