From e3a7f762761b0353249c799d18c7e63e9fa7c44a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Sat, 24 Jun 2023 10:19:35 +0500 Subject: [PATCH] Avoid ui errors after 2dc9dc200 --- src/blenderbim/blenderbim/bim/module/style/ui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/style/ui.py b/src/blenderbim/blenderbim/bim/module/style/ui.py index d21098034a..b2e8868103 100644 --- a/src/blenderbim/blenderbim/bim/module/style/ui.py +++ b/src/blenderbim/blenderbim/bim/module/style/ui.py @@ -228,6 +228,10 @@ class BIM_PT_STYLE_GRAPH(Panel): bl_region_type = "UI" bl_category = "BBIM" + @classmethod + def poll(cls, context): + return getattr(context, "mat", None) + def draw(self, context): layout = self.layout props = context.active_object.active_material.BIMStyleProperties