From: Aeva Ntsc Date: Mon, 25 Mar 2013 12:55:24 +0000 (-0500) Subject: Ascii stl files now should have their whitespace stripped when parsing. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=50d123b4be4d56b9d24d5a70bc5c04ef5669eaab;p=mediagoblin.git Ascii stl files now should have their whitespace stripped when parsing. --- diff --git a/mediagoblin/media_types/stl/model_loader.py b/mediagoblin/media_types/stl/model_loader.py index 528c82fa..88f19314 100644 --- 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))