diff --git a/korman/operators/op_export.py b/korman/operators/op_export.py index 75c4d81..565e175 100644 --- a/korman/operators/op_export.py +++ b/korman/operators/op_export.py @@ -70,6 +70,10 @@ class ExportOperator(bpy.types.Operator): self.report({"ERROR"}, "Failed to create export directory") return {"CANCELLED"} + # We need to back out of edit mode--this ensures that all changes are committed + if context.mode != "OBJECT": + bpy.ops.object.mode_set(mode="OBJECT") + # Separate blender operator and actual export logic for my sanity e = exporter.Exporter(self) try: