Merge remote-tracking branch 'aeva/671_fix_stl'

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

View File

@ -80,6 +80,7 @@ class ObjModel(ThreeDee):
def load(self, fileob): def load(self, fileob):
for line in fileob: for line in fileob:
line = line.strip()
if line[0] == "v": if line[0] == "v":
self.verts.append(self.__vector(line)) self.verts.append(self.__vector(line))
@ -121,6 +122,8 @@ def auto_detect(fileob, hint):
pass pass
except ValueError: except ValueError:
pass pass
except IndexError:
pass
try: try:
# It is pretty important that the binary stl model loader # It is pretty important that the binary stl model loader
# is tried second, because its possible for it to parse # is tried second, because its possible for it to parse