mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
blenderbim - hide json output file and some operators if current ifc file is not used
It was misleading since those operators only worked with the current model and had no effect if it wasn't used in ifcdiff.
This commit is contained in:
@@ -98,6 +98,9 @@ class BIM_PT_diff(Panel):
|
||||
row = layout.row()
|
||||
row.operator("bim.execute_ifc_diff")
|
||||
|
||||
if props.active_file == "NONE":
|
||||
return
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(props, "diff_json_file")
|
||||
row.operator("bim.select_diff_json_file", icon="FILE_FOLDER", text="")
|
||||
|
||||
Reference in New Issue
Block a user