Browse Source

Ensure we're in object mode before exporting..

pull/6/head
Adam Johnson 10 years ago
parent
commit
b5509f71af
  1. 4
      korman/operators/op_export.py

4
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:

Loading…
Cancel
Save