mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix #2010 : Authoring data class throws error in BIM tool if no ifc file is selected
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user