mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Avoid ui errors after 2dc9dc200
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user