Avoid ui errors after 2dc9dc200

This commit is contained in:
Andrej730
2023-06-24 10:19:35 +05:00
parent 6dab4501ad
commit e3a7f76276
@@ -228,6 +228,10 @@ class BIM_PT_STYLE_GRAPH(Panel):
bl_region_type = "UI" bl_region_type = "UI"
bl_category = "BBIM" bl_category = "BBIM"
@classmethod
def poll(cls, context):
return getattr(context, "mat", None)
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
props = context.active_object.active_material.BIMStyleProperties props = context.active_object.active_material.BIMStyleProperties