[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4405] trunk/py/scripts/addons/ io_mesh_ply/export_ply.py: only apply modifiers if the mesh has modifiers
Campbell Barton
ideasman42 at gmail.com
Fri Mar 22 01:08:38 CET 2013
Revision: 4405
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4405
Author: campbellbarton
Date: 2013-03-22 00:08:36 +0000 (Fri, 22 Mar 2013)
Log Message:
-----------
only apply modifiers if the mesh has modifiers
Modified Paths:
--------------
trunk/py/scripts/addons/io_mesh_ply/export_ply.py
Modified: trunk/py/scripts/addons/io_mesh_ply/export_ply.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_ply/export_ply.py 2013-03-21 23:04:09 UTC (rev 4404)
+++ trunk/py/scripts/addons/io_mesh_ply/export_ply.py 2013-03-22 00:08:36 UTC (rev 4405)
@@ -190,7 +190,7 @@
use_uv_coords=True,
use_colors=True,
):
-
+
scene = context.scene
obj = context.active_object
@@ -199,7 +199,7 @@
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 @@
if use_mesh_modifiers:
bpy.data.meshes.remove(mesh)
- return ret
\ No newline at end of file
+ return ret
More information about the Bf-extensions-cvs
mailing list