Skip to content

Commit

Permalink
Merge pull request #3045 from 1k8/main
Browse files Browse the repository at this point in the history
Update exporter_opt.py
  • Loading branch information
luboslenco authored Sep 14, 2024
2 parents e556b46 + 5345b64 commit 9321675
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blender/arm/exporter_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def calc_tangents(posa, nora, uva, ias, scale_pos):


def export_mesh_data(self, export_mesh: bpy.types.Mesh, bobject: bpy.types.Object, o, has_armature=False):
export_mesh.calc_normals_split()
if bpy.app.version < (4, 1, 0):
export_mesh.calc_normals_split()
else:
updated_normals = export_mesh.corner_normals
# exportMesh.calc_loop_triangles()
vcol0 = self.get_nth_vertex_colors(export_mesh, 0)
vert_list = {Vertex(export_mesh, loop, vcol0): 0 for loop in export_mesh.loops}.keys()
Expand Down

0 comments on commit 9321675

Please sign in to comment.