GPencil: Fix missing change material menu using U key
The menu was not activated when vertex mode was enabled.
This commit is contained in:
parent
b54b56fcbe
commit
66874824e6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue