remove poll in check layer
parent
2e9b379144
commit
1121c489a8
|
@ -195,10 +195,9 @@ class GPEXP_OT_layers_state(bpy.types.Operator):
|
||||||
hide_invisible_materials : BoolProperty(name='Hide Materials named invisible',
|
hide_invisible_materials : BoolProperty(name='Hide Materials named invisible',
|
||||||
default=True, description='Hide material with name starting with "invisible"') # , options={'SKIP_SAVE'}
|
default=True, description='Hide material with name starting with "invisible"') # , options={'SKIP_SAVE'}
|
||||||
|
|
||||||
|
# @classmethod
|
||||||
@classmethod
|
# def poll(cls, context):
|
||||||
def poll(cls, context):
|
# return context.object
|
||||||
return context.object and context.object.type == 'GPENCIL'
|
|
||||||
|
|
||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue