Skip to content

Commit

Permalink
Fix OoT import failing in Blender 4.1 (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragorn421 committed May 12, 2024
1 parent b0b752f commit dfea093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fast64_internal/f3d/f3d_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,9 @@ def createMesh(self, obj, removeDoubles, importNormals, callDeleteMaterialContex
# else:

if importNormals:
mesh.use_auto_smooth = True
# Changed in Blender 4.1: "Meshes now always use custom normals if they exist." (and use_auto_smooth was removed)
if bpy.app.version < (4, 1, 0):
mesh.use_auto_smooth = True
mesh.normals_split_custom_set([f3dVert.normal for f3dVert in self.verts])

for groupName, indices in self.limbGroups.items():
Expand Down

0 comments on commit dfea093

Please sign in to comment.