diff options
Diffstat (limited to 'io_mesh_ply/export_ply.py')
-rw-r--r-- | io_mesh_ply/export_ply.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index 48d1542f..4ef8b5fb 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -197,7 +197,8 @@ def save(operator, if not obj: raise Exception("Error, Select 1 active object") - obj.update_from_editmode() + if bpy.ops.object.mode_set.poll(): + bpy.ops.object.mode_set(mode='OBJECT') if use_mesh_modifiers and obj.modifiers: mesh = obj.to_mesh(scene, True, 'PREVIEW') |