diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-21 18:57:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-21 18:57:59 +0400 |
commit | 15f73827bf09681945e353dc26d5d9175a0e2d82 (patch) | |
tree | 29903724e0dbb0df79ddfa99c6454eec49b38ac4 /io_mesh_ply | |
parent | c75f170adb9ab2195aaa98122ed02d9332b1b72a (diff) |
only calculate normals if there being exported.
Diffstat (limited to 'io_mesh_ply')
-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 644b890f..eab74ca8 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -208,7 +208,8 @@ def save(operator, 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, |