Avoid ui errors after 2dc9dc200

This commit is contained in:
Andrej730
2023-06-24 10:19:35 +05:00
parent 91fa5b1ec6
commit 5cb1936412
@@ -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