Merge remote-tracking branch 'aeva/671_fix_stl'
This commit is contained in:
commit
126c3503a0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user