Removing authoring mode which was an outdated concept.

This commit is contained in:
Dion Moult
2023-05-31 15:35:53 +10:00
parent 8a9998bc65
commit 11ec8e04c2
4 changed files with 2 additions and 7 deletions
+2 -3
View File
@@ -44,9 +44,8 @@ class IfcExporter:
self.file = IfcStore.get_file()
self.set_header()
IfcStore.update_cache()
if bpy.context.scene.BIMProjectProperties.is_authoring:
self.sync_all_objects()
self.sync_edited_objects()
self.sync_all_objects()
self.sync_edited_objects()
extension = self.ifc_export_settings.output_file.split(".")[-1].lower()
if extension == "ifczip":
with tempfile.TemporaryDirectory() as unzipped_path:
-2
View File
@@ -34,8 +34,6 @@ global_subscription_owner = object()
def mode_callback(obj, data):
if not bpy.context.scene.BIMProjectProperties.is_authoring:
return
objects = bpy.context.selected_objects
if bpy.context.active_object:
objects += [bpy.context.active_object]
@@ -98,7 +98,6 @@ class Link(PropertyGroup):
class BIMProjectProperties(PropertyGroup):
is_authoring: BoolProperty(name="Enable Authoring Mode", default=True)
is_editing: BoolProperty(name="Is Editing", default=False)
is_loading: BoolProperty(name="Is Loading", default=False)
mvd: StringProperty(name="MVD")
@@ -110,7 +110,6 @@ class BIM_PT_project(Panel):
row.label(text=os.path.basename(props.ifc_file) or "No File Found", icon="FILE")
if IfcStore.get_file():
row.prop(pprops, "is_authoring", icon="MODIFIER", text="")
if pprops.is_editing:
row.operator("bim.edit_header", icon="CHECKMARK", text="")
row.operator("bim.disable_editing_header", icon="CANCEL", text="")