Ascii stl files now should have their whitespace stripped when parsing.
authorAeva Ntsc <aeva.ntsc@gmail.com>
Mon, 25 Mar 2013 12:55:24 +0000 (07:55 -0500)
committerAeva Ntsc <aeva.ntsc@gmail.com>
Mon, 25 Mar 2013 12:55:24 +0000 (07:55 -0500)
mediagoblin/media_types/stl/model_loader.py

index 528c82fa7885683d13ddc3acf1feeb6216b5da9e..88f193147111f79fba362bc7abc8fe0f5066f7c5 100644 (file)
@@ -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))