Skip to content

Commit

Permalink
Blender Version 4.1 Fix (#325)
Browse files Browse the repository at this point in the history
* blend 4.1 compat

* made change version exclusive

---------

Co-authored-by: IssaCardona <[email protected]>
Co-authored-by: scut <scut@scut>
  • Loading branch information
3 people committed Apr 13, 2024
1 parent 161ad27 commit 92891ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fast64_internal/f3d/f3d_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ def getInfoDict_impl(obj: bpy.types.Object):
# check mesh.loop_triangles (now that we computed them), used below
check_face_materials(get_original_name(obj), material_slots, mesh.loop_triangles)

mesh.calc_normals_split()
# in blender version 4.1 func was removed, in 4.1+ normals are always calculated
if bpy.app.version < (4, 1, 0):
mesh.calc_normals_split()

infoDict = MeshInfo()

Expand Down

0 comments on commit 92891ae

Please sign in to comment.