[Bf-extensions-cvs] [d9fcbd0] master: Fix T38462: error importing PLY with leading space
Campbell Barton
noreply at git.blender.org
Mon Feb 3 23:20:57 CET 2014
Commit: d9fcbd06018165cc2cfca0673c7c2db44b04a833
Author: Campbell Barton
Date: Tue Feb 4 09:20:37 2014 +1100
https://developer.blender.org/rBAd9fcbd06018165cc2cfca0673c7c2db44b04a833
Fix T38462: error importing PLY with leading space
===================================================================
M io_mesh_ply/import_ply.py
===================================================================
diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py
index 9cf5df6..5d4f824 100644
--- a/io_mesh_ply/import_ply.py
+++ b/io_mesh_ply/import_ply.py
@@ -35,7 +35,7 @@ class element_spec(object):
def load(self, format, stream):
if format == b'ascii':
- stream = re.split(b'\s+', stream.readline())
+ stream = stream.readline().split()
return [x.load(format, stream) for x in self.properties]
def index(self, name):
More information about the Bf-extensions-cvs
mailing list