Fix T68507: Gpencil: Show always the Select Menu in Edit Mode

In Grease Pencil Edit Mode the Select menu should always be visible. Right now the menu visibility is controlled by the Selection Mask button next interpolate popover

Differential Revision: https://developer.blender.org/D5466
This commit is contained in:
Matias Mendiola
2019-08-12 23:21:58 +02:00
committed by Antonio Vazquez
parent bb1719ddb5
commit af3f0bf9d4

View File

@@ -732,7 +732,9 @@ 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 ts.gpencil_sculpt.use_select_mask: if mode_string == 'SCULPT_GPENCIL' and ts.gpencil_sculpt.use_select_mask:
layout.menu("VIEW3D_MT_select_gpencil")
elif mode_string == 'EDIT_GPENCIL':
layout.menu("VIEW3D_MT_select_gpencil") layout.menu("VIEW3D_MT_select_gpencil")
elif mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'}: elif mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'}:
mesh = obj.data mesh = obj.data