Cleanup: avoid back-slash line continuations
This commit is contained in:
parent
ffa7bfdda5
commit
4d358855b8
@ -815,10 +815,12 @@ class VIEW3D_MT_editor_menus(Menu):
|
||||
# Select Menu
|
||||
if gp_edit:
|
||||
if mode_string not in {'PAINT_GPENCIL', 'WEIGHT_GPENCIL'}:
|
||||
if mode_string == 'SCULPT_GPENCIL' and \
|
||||
(ts.use_gpencil_select_mask_point or
|
||||
ts.use_gpencil_select_mask_stroke or
|
||||
ts.use_gpencil_select_mask_segment):
|
||||
if (
|
||||
mode_string == 'SCULPT_GPENCIL' and
|
||||
(ts.use_gpencil_select_mask_point or
|
||||
ts.use_gpencil_select_mask_stroke or
|
||||
ts.use_gpencil_select_mask_segment)
|
||||
):
|
||||
layout.menu("VIEW3D_MT_select_gpencil")
|
||||
elif mode_string == 'EDIT_GPENCIL':
|
||||
layout.menu("VIEW3D_MT_select_gpencil")
|
||||
@ -6127,8 +6129,10 @@ class VIEW3D_PT_overlay_geometry(Panel):
|
||||
sub.prop(overlay, "wireframe_threshold", text="Wireframe")
|
||||
|
||||
row = col.row(align=True)
|
||||
if context.mode not in {'EDIT_ARMATURE', 'POSE', 'OBJECT', 'PAINT_GPENCIL',\
|
||||
'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL'}:
|
||||
if context.mode not in {
|
||||
'EDIT_ARMATURE', 'POSE', 'OBJECT',
|
||||
'PAINT_GPENCIL', 'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL',
|
||||
}:
|
||||
row.prop(overlay, "show_fade_inactive", text="")
|
||||
sub = row.row()
|
||||
sub.active = overlay.show_fade_inactive
|
||||
|
Loading…
Reference in New Issue
Block a user