mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Fix blend file being saved twice in a row with CTRL-S
This caused a noticeable hiccup when a large file is saved twice on a network drive. Also it messed up the backup system.
This commit is contained in:
@@ -1419,9 +1419,6 @@ class ExportIFC(bpy.types.Operator):
|
|||||||
f'IFC Project "{os.path.basename(output_file)}" {"" if not save_blend_file else "And Current Blend File Are"} Saved',
|
f'IFC Project "{os.path.basename(output_file)}" {"" if not save_blend_file else "And Current Blend File Are"} Saved',
|
||||||
)
|
)
|
||||||
|
|
||||||
if bpy.data.is_saved:
|
|
||||||
bpy.ops.wm.save_mainfile("INVOKE_DEFAULT")
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def description(cls, context, properties):
|
def description(cls, context, properties):
|
||||||
if properties.should_save_as:
|
if properties.should_save_as:
|
||||||
|
|||||||
Reference in New Issue
Block a user