[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4403] trunk/py/scripts/addons/ io_mesh_ply/export_ply.py: only calculate normals if there being exported.
Campbell Barton
ideasman42 at gmail.com
Thu Mar 21 15:58:00 CET 2013
Revision: 4403
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4403
Author: campbellbarton
Date: 2013-03-21 14:57:59 +0000 (Thu, 21 Mar 2013)
Log Message:
-----------
only calculate normals if there being exported.
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 14:55:28 UTC (rev 4402)
+++ trunk/py/scripts/addons/io_mesh_ply/export_ply.py 2013-03-21 14:57:59 UTC (rev 4403)
@@ -208,7 +208,8 @@
raise Exception("Error, could not get mesh data from active object")
mesh.transform(obj.matrix_world)
- mesh.calc_normals()
+ if use_normals:
+ mesh.calc_normals()
ret = save_mesh(filepath, mesh,
use_normals=use_normals,
More information about the Bf-extensions-cvs
mailing list