GPencil: Fix missing change material menu using U key

The menu was not activated when vertex mode was enabled.
This commit is contained in:
Antonio Vazquez 2021-02-24 20:04:02 +01:00
parent b54b56fcbe
commit 66874824e6
1 changed files with 0 additions and 5 deletions

View File

@ -328,11 +328,6 @@ class GPENCIL_MT_material_active(Menu):
@classmethod
def poll(cls, context):
ob = context.active_object
tool_settings = context.scene.tool_settings
mode = tool_settings.gpencil_paint.color_mode
if mode != 'MATERIAL':
return False
if ob is None or len(ob.material_slots) == 0:
return False