projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eacb9c4
)
Ascii stl files now should have their whitespace stripped when parsing.
author
Aeva Ntsc
<aeva.ntsc@gmail.com>
Mon, 25 Mar 2013 12:55:24 +0000
(07:55 -0500)
committer
Aeva Ntsc
<aeva.ntsc@gmail.com>
Mon, 25 Mar 2013 12:55:24 +0000
(07:55 -0500)
mediagoblin/media_types/stl/model_loader.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/media_types/stl/model_loader.py
b/mediagoblin/media_types/stl/model_loader.py
index 528c82fa7885683d13ddc3acf1feeb6216b5da9e..88f193147111f79fba362bc7abc8fe0f5066f7c5 100644
(file)
--- a/
mediagoblin/media_types/stl/model_loader.py
+++ b/
mediagoblin/media_types/stl/model_loader.py
@@
-80,6
+80,7
@@
class ObjModel(ThreeDee):
def load(self, fileob):
for line in fileob:
+ line = line.strip()
if line[0] == "v":
self.verts.append(self.__vector(line))