Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_mesh_atomic')
-rw-r--r--io_mesh_atomic/xyz_gui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_mesh_atomic/xyz_gui.py b/io_mesh_atomic/xyz_gui.py
index 2b452a61..18df0063 100644
--- a/io_mesh_atomic/xyz_gui.py
+++ b/io_mesh_atomic/xyz_gui.py
@@ -153,6 +153,8 @@ class IMPORT_OT_xyz(Operator, ImportHelper):
col.prop(self, "images_per_key")
def execute(self, context):
+ # To be on the safe side, we switch to the 'OBJECT' mode.
+ bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
del ALL_FRAMES[:]
del ELEMENTS[:]