Skip to content

Commit

Permalink
Arch: Fixed bug in WebGL exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Apr 2, 2018
1 parent b5779a8 commit e195f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Arch/importWebGL.py
Expand Up @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit e195f03

Please sign in to comment.