Skip to content

Commit

Permalink
Blender 2.81 API changes
Browse files Browse the repository at this point in the history
calc_loop_triangles is no longer an argument in Mesh.update() function. Use Mesh.calc_loop_triangles()
  • Loading branch information
johnzero7 committed Jan 1, 2020
1 parent e587aa0 commit 9f90ea4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion export_xnalara_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ def getXpsVertices(selectedArmature, mesh):
# Calculates tesselated faces and normal split to make them available for export
mesh.data.calc_normals_split()
mesh.data.calc_loop_triangles()
mesh.data.update(calc_edges=True, calc_loop_triangles=True)
mesh.data.update(calc_edges=True)
mesh.data.calc_loop_triangles()

matCount = len(mesh.data.materials)
if (matCount > 0):
Expand Down

0 comments on commit 9f90ea4

Please sign in to comment.