From: daid303 Date: Mon, 28 Jan 2013 12:37:03 +0000 (+0100) Subject: Properly check the v1/2/3 tag, else we have issues with faces with normals. X-Git-Tag: 13.03~71 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fbd9c021fa46188843bca0371a81dda08b020a9c;p=cura.git Properly check the v1/2/3 tag, else we have issues with faces with normals. --- diff --git a/Cura/util/meshLoaders/amf.py b/Cura/util/meshLoaders/amf.py index 30a950c3..61a28b58 100644 --- a/Cura/util/meshLoaders/amf.py +++ b/Cura/util/meshLoaders/amf.py @@ -67,8 +67,9 @@ class amfModel(mesh.mesh): for volume in mesh.iter('volume'): for triangle in volume.iter('triangle'): for t in triangle: - v = vertexList[int(t.text)] - self.addVertex(v[0], v[1], v[2]) + if t.tag == 'v1' or t.tag == 'v2' or t.tag == 'v3': + v = vertexList[int(t.text)] + self.addVertex(v[0], v[1], v[2]) self.vertexes *= scale self._postProcessAfterLoad()