Merge pull request #284 from addixff/master

Fixes call to mesh.update in Blender 2.81+
This commit is contained in:
Lu Jiacheng
2019-12-08 17:08:24 -08:00
committed by GitHub

View File

@@ -39,8 +39,10 @@ def triangulate_mesh(mesh):
tri_mesh, faces=tri_mesh.faces, quad_method="ALTERNATE")
tri_mesh.to_mesh(mesh)
tri_mesh.free()
mesh.update(calc_loop_triangles=True)
if bpy.app.version[1] > 80:
mesh.update()
else:
mesh.update(calc_loop_triangles=True)
class MeshResourceKey: