From e195f035cd7751699cda8add9173a60dc8bd96e9 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 2 Apr 2018 13:43:29 -0300 Subject: [PATCH] Arch: Fixed bug in WebGL exporter --- src/Mod/Arch/importWebGL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/importWebGL.py b/src/Mod/Arch/importWebGL.py index 0100456ede..0ac366c41c 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -177,7 +177,7 @@ def getObjectData(obj,wireframeMode=wireframeStyle): result += tab+"geom.vertices.push(v"+str(i)+");\n" # adding facets data for f in fcmesh[1]: - result += tab+"geom.faces.push( new THREE.Face3"+str(f)+" );\n" + result += tab+"geom.faces.push( new THREE.Face3"+str(f).replace("L","")+" );\n" for f in obj.Shape.Faces: for w in f.Wires: wo = Part.Wire(Part.__sortEdges__(w.Edges)) @@ -197,7 +197,7 @@ def getObjectData(obj,wireframeMode=wireframeStyle): # adding facets data for f in mesh.Facets: pointIndices = tuple([ int(i) for i in f.PointIndices ]) - result += tab+"geom.faces.push( new THREE.Face3"+str(pointIndices)+" );\n" + result += tab+"geom.faces.push( new THREE.Face3"+str(pointIndices).replace("L","")+" );\n" if result: # adding a base material