Remove unload project button - superseded by Convert To Blender File operator

This commit is contained in:
Dion Moult
2024-06-28 22:44:19 +10:00
parent 42b96d6290
commit 03b6c08c50
3 changed files with 0 additions and 15 deletions
@@ -58,7 +58,6 @@ classes = (
operator.UnassignLibraryDeclaration,
operator.UnlinkIfc,
operator.UnloadLink,
operator.UnloadProject,
workspace.ExploreHotkey,
prop.LibraryElement,
prop.FilterCategory,
@@ -703,19 +703,6 @@ class LoadProject(bpy.types.Operator, IFCFileSelector):
IFCFileSelector.draw(self, context)
class UnloadProject(bpy.types.Operator):
bl_idname = "bim.unload_project"
bl_label = "Unload Project"
bl_options = {"REGISTER", "UNDO"}
bl_description = "Unload the IFC project"
def execute(self, context):
IfcStore.purge()
context.scene.BIMProperties.ifc_file = ""
context.scene.BIMProjectProperties.is_loading = False
return {"FINISHED"}
class RevertProject(bpy.types.Operator, IFCFileSelector):
bl_idname = "bim.revert_project"
bl_label = "Revert IFC Project"
@@ -161,7 +161,6 @@ class BIM_PT_project(Panel):
row = self.layout.row(align=True)
row.operator("bim.load_project_elements")
row.operator("bim.unload_project", text="", icon="CANCEL")
def draw_editing_buttons(self, context, row):
pprops = context.scene.BIMProjectProperties