Fix T77067: GPencil Object without materials cannot use Vertex Color mode

This commit is contained in:
Antonio Vazquez
2020-05-26 12:13:25 +02:00
parent 2dd6d0ce4b
commit 5a1ab3e9ae

View File

@@ -432,7 +432,7 @@ class _draw_tool_settings_context_mode:
row.prop(gp_settings, "use_material_pin", text="") row.prop(gp_settings, "use_material_pin", text="")
if brush.gpencil_tool in {'DRAW', 'FILL'} and ma: if brush.gpencil_tool in {'DRAW', 'FILL'}:
row.separator(factor=1.0) row.separator(factor=1.0)
subrow = row.row(align=True) subrow = row.row(align=True)
row.prop_enum(settings, "color_mode", 'MATERIAL', text="", icon='MATERIAL') row.prop_enum(settings, "color_mode", 'MATERIAL', text="", icon='MATERIAL')