mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-06 20:36:27 +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):
|
def draw_settings(context, layout, tool):
|
||||||
if not AuthoringData.is_loaded:
|
if not AuthoringData.is_loaded and IfcStore.get_file():
|
||||||
AuthoringData.load()
|
AuthoringData.load()
|
||||||
|
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user