Skip to content

Commit

Permalink
Fix STL parser
Browse files Browse the repository at this point in the history
  • Loading branch information
kliment committed Mar 24, 2018
1 parent 11a51ad commit f8aeafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printrun/stltool.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(self, filename = None):
self.facetloc = 0
if filename is None:
return
with open(filename) as f:
with open(filename,encoding="ascii",errors="ignore") as f:
data = f.read()
if "facet normal" in data[1:300] and "outer loop" in data[1:300]:
lines = data.split("\n")
Expand Down

0 comments on commit f8aeafd

Please sign in to comment.