Skip to content

Commit

Permalink
Update fast64_internal/f3d/f3d_writer.py
Browse files Browse the repository at this point in the history
dragon suggestion

Co-authored-by: Dragorn421 <[email protected]>
  • Loading branch information
Scut and Dragorn421 authored Jan 25, 2024
1 parent 8301a23 commit eff2838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast64_internal/f3d/f3d_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def saveStaticModel(
faces_by_mat[face.material_index].append(face)

# sort by material slot
faces_by_mat = {mat_index: faces_by_mat[mat_index] for mat_index, _ in enumerate(obj.material_slots)}
faces_by_mat = {mat_index: faces_by_mat[mat_index] for mat_index, _ in enumerate(obj.material_slots) if mat_index in faces_by_mat}

fMeshes = {}
for material_index, faces in faces_by_mat.items():
Expand Down

0 comments on commit eff2838

Please sign in to comment.