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:
parent
388b916246
commit
6d32c7865f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue