From e2c4bcb2171756922997d820c0e516c55c35c357 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 7 Aug 2024 16:35:24 +0500 Subject: [PATCH] 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. --- src/blenderbim/blenderbim/bim/module/diff/ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/diff/ui.py b/src/blenderbim/blenderbim/bim/module/diff/ui.py index 6593e7cd6f..b253368e4e 100644 --- a/src/blenderbim/blenderbim/bim/module/diff/ui.py +++ b/src/blenderbim/blenderbim/bim/module/diff/ui.py @@ -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="")