From fdd1e4dcdc63b3fda8300e4f46fcf8010ae928af Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 22 Mar 2013 00:08:36 +0000 Subject: only apply modifiers if the mesh has modifiers --- io_mesh_ply/export_ply.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'io_mesh_ply/export_ply.py') 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 -- cgit v1.2.3