[Bf-extensions-cvs] [9ad943c] master: Fix T39755: recent patch which made ascii files write zero normals

Campbell Barton noreply at git.blender.org
Wed Apr 16 17:11:53 CEST 2014


Commit: 9ad943c1a74bc4b633c31592086f1185022baf1b
Author: Campbell Barton
Date:   Thu Apr 17 01:11:10 2014 +1000
https://developer.blender.org/rBA9ad943c1a74bc4b633c31592086f1185022baf1b

Fix T39755: recent patch which made ascii files write zero normals

===================================================================

M	io_mesh_stl/stl_utils.py

===================================================================

diff --git a/io_mesh_stl/stl_utils.py b/io_mesh_stl/stl_utils.py
index 7cadc0a..1145ab4 100644
--- a/io_mesh_stl/stl_utils.py
+++ b/io_mesh_stl/stl_utils.py
@@ -210,7 +210,7 @@ def _ascii_write(filepath, faces, use_normals):
                 fw('endloop\nendfacet\n')
         else:
             for face in faces:
-                fw('facet normal 0 0 0\nouter loop\n')
+                fw('outer loop\n')
                 for vert in face:
                     fw('vertex %f %f %f\n' % vert[:])
                 fw('endloop\nendfacet\n')



More information about the Bf-extensions-cvs mailing list