From a83e6f9b48d4dbe4115194e3f9325ba622e0c239 Mon Sep 17 00:00:00 2001 From: Jonathan Wiedemann Date: Sat, 29 Oct 2016 00:01:03 +0200 Subject: [PATCH] Fix webgl export for mesh based object --- src/Mod/Arch/importWebGL.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/importWebGL.py b/src/Mod/Arch/importWebGL.py index 1b72571d4..e237d74f2 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -187,7 +187,8 @@ def getObjectData(obj,wireframeMode=wireframeStyle): result += tab+"geom.vertices.push(v"+str(p.Index)+");\n" # adding facets data for f in mesh.Facets: - result += tab+"geom.faces.push( new THREE.Face3"+str(f.PointIndices)+" );\n" + pointIndices = tuple([ int(i) for i in f.PointIndices ]) + result += tab+"geom.faces.push( new THREE.Face3"+str(pointIndices)+" );\n" if result: # adding a base material