Skip to content

Commit

Permalink
Fix webgl export for mesh based object
Browse files Browse the repository at this point in the history
  • Loading branch information
j-wiedemann committed Oct 28, 2016
1 parent 85534c7 commit a83e6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Arch/importWebGL.py
Expand Up @@ -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
Expand Down

0 comments on commit a83e6f9

Please sign in to comment.