mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Remove unload project button - superseded by Convert To Blender File operator
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user