Only show search UI if an IFC model is loaded.

This commit is contained in:
Dion Moult
2021-05-19 14:46:02 +10:00
parent b650c045f5
commit 4214a449a8
@@ -10,6 +10,10 @@ class BIM_PT_search(Panel):
bl_region_type = "WINDOW"
bl_context = "scene"
@classmethod
def poll(cls, context):
return IfcStore.get_file()
def draw(self, context):
props = context.scene.BIMSearchProperties