[Bf-extensions-cvs] [2182a3d] master: Fix own stupid typo...

Bastien Montagne noreply at git.blender.org
Mon May 4 18:05:53 CEST 2015


Commit: 2182a3db54a0699ead0ed2c8e4f529a367bbf351
Author: Bastien Montagne
Date:   Mon May 4 18:05:40 2015 +0200
Branches: master
https://developer.blender.org/rBA2182a3db54a0699ead0ed2c8e4f529a367bbf351

Fix own stupid typo...

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

M	io_mesh_stl/stl_utils.py

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

diff --git a/io_mesh_stl/stl_utils.py b/io_mesh_stl/stl_utils.py
index 6294184..a5edbee 100644
--- a/io_mesh_stl/stl_utils.py
+++ b/io_mesh_stl/stl_utils.py
@@ -157,7 +157,7 @@ def _ascii_read(data):
     for l in data:
         l = l.lstrip()
         if l.startswith(b'facet'):
-            curr_nor = tuple(map(float, l_item.split()[2:]))
+            curr_nor = tuple(map(float, l.split()[2:]))
         # if we encounter a vertex, read next 2
         if l.startswith(b'vertex'):
             yield curr_nor, [tuple(map(float, l_item.split()[1:])) for l_item in (l, data.readline(), data.readline())]



More information about the Bf-extensions-cvs mailing list