GPencil: Fix unreported missing context menu for pinned mode

When the mode was pinned, the context menu did not display the color wheel for the vertex color mode.
This commit is contained in:
Antonio Vazquez 2020-09-25 15:50:06 +02:00
parent 388b916246
commit 6d32c7865f
1 changed files with 2 additions and 1 deletions

View File

@ -7132,7 +7132,8 @@ class VIEW3D_PT_gpencil_draw_context_menu(Panel):
gp_settings = brush.gpencil_settings
layout = self.layout
is_vertex = settings.color_mode == 'VERTEXCOLOR' or brush.gpencil_tool == 'TINT'
is_pin_vertex = gp_settings.brush_draw_mode == 'VERTEXCOLOR'
is_vertex = settings.color_mode == 'VERTEXCOLOR' or brush.gpencil_tool == 'TINT' or is_pin_vertex
if brush.gpencil_tool not in {'ERASE', 'CUTTER', 'EYEDROPPER'} and is_vertex:
split = layout.split(factor=0.1)