From 1121c489a86d7cea114fc87411a5927393404e14 Mon Sep 17 00:00:00 2001 From: pullusb Date: Wed, 4 Sep 2024 17:03:33 +0200 Subject: [PATCH] remove poll in check layer --- OP_setup_layers.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OP_setup_layers.py b/OP_setup_layers.py index 417a7ff..20a7b2e 100644 --- a/OP_setup_layers.py +++ b/OP_setup_layers.py @@ -195,10 +195,9 @@ class GPEXP_OT_layers_state(bpy.types.Operator): hide_invisible_materials : BoolProperty(name='Hide Materials named invisible', default=True, description='Hide material with name starting with "invisible"') # , options={'SKIP_SAVE'} - - @classmethod - def poll(cls, context): - return context.object and context.object.type == 'GPENCIL' + # @classmethod + # def poll(cls, context): + # return context.object def invoke(self, context, event):