See #4854. Don't show IFC mode UI if there is no IFC model.

Still quite a bit of work to be done here, but this is better than nothing.
This commit is contained in:
Dion Moult
2024-06-14 13:01:43 +10:00
parent a0a505d64b
commit 105434fe68
@@ -33,6 +33,8 @@ from blenderbim.bim.module.layer.data import LayersData
def mode_menu(self, context):
if not tool.Ifc.get():
return
row = self.layout.row(align=True)
if context.scene.BIMGeometryProperties.mode == "EDIT":
row.operator("bim.override_mode_set_object", icon="CANCEL", text="Discard Changes").should_save = False