mirror of
https://github.com/godotengine/godot-blender-exporter.git
synced 2026-01-05 18:10:04 +03:00
Merge pull request #284 from addixff/master
Fixes call to mesh.update in Blender 2.81+
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user