diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-22 04:08:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-22 04:08:36 +0400 |
commit | fdd1e4dcdc63b3fda8300e4f46fcf8010ae928af (patch) | |
tree | bd533ce6a7c776b5c95a2c0186b17fc61840abe7 /io_mesh_ply | |
parent | c8a1a563ae50255dd52923928dec674684eae541 (diff) |
only apply modifiers if the mesh has modifiers
Diffstat (limited to 'io_mesh_ply')
-rw-r--r-- | io_mesh_ply/export_ply.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index eab74ca8..48d1542f 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -190,7 +190,7 @@ def save(operator, use_uv_coords=True, use_colors=True, ): - + scene = context.scene obj = context.active_object @@ -199,7 +199,7 @@ def save(operator, obj.update_from_editmode() - if use_mesh_modifiers: + if use_mesh_modifiers and obj.modifiers: mesh = obj.to_mesh(scene, True, 'PREVIEW') else: mesh = obj.data.copy() @@ -220,4 +220,4 @@ def save(operator, if use_mesh_modifiers: bpy.data.meshes.remove(mesh) - return ret
\ No newline at end of file + return ret |