BIM: Fix bug in OBJ import caused by missing utf8 encoding

Fixes #15512.
This commit is contained in:
Roy-043
2024-07-19 10:31:00 +02:00
committed by Yorik van Havre
parent 3efba18ad4
commit 62ddfb90dc

View File

@@ -306,7 +306,7 @@ def insert(filename,docname):
doc = FreeCAD.newDocument(docname)
FreeCAD.ActiveDocument = doc
with pythonopen(filename,"r") as infile:
with pythonopen(filename,"r",encoding="utf8") as infile:
verts = []
facets = []
activeobject = None