From 50d123b4be4d56b9d24d5a70bc5c04ef5669eaab Mon Sep 17 00:00:00 2001 From: Aeva Ntsc Date: Mon, 25 Mar 2013 07:55:24 -0500 Subject: [PATCH] Ascii stl files now should have their whitespace stripped when parsing. --- mediagoblin/media_types/stl/model_loader.py | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.25.1