Merge remote-tracking branch 'aeva/671_fix_stl'

This commit is contained in:
Christopher Allan Webber
2013-03-25 08:01:11 -05:00

View 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))
@@ -121,6 +122,8 @@ def auto_detect(fileob, hint):
pass
except ValueError:
pass
except IndexError:
pass
try:
# It is pretty important that the binary stl model loader
# is tried second, because its possible for it to parse