Fix #2010 : Authoring data class throws error in BIM tool if no ifc file is selected

This commit is contained in:
Gorgious
2022-02-01 09:12:42 +01:00
parent a2c0045a40
commit f9ce0903f7
@@ -52,7 +52,7 @@ class BimTool(WorkSpaceTool):
)
def draw_settings(context, layout, tool):
if not AuthoringData.is_loaded:
if not AuthoringData.is_loaded and IfcStore.get_file():
AuthoringData.load()
row = layout.row(align=True)