Skip to content

Commit

Permalink
#74 Adopt only material_slots for library override
Browse files Browse the repository at this point in the history
  • Loading branch information
UuuNyaa committed Oct 17, 2022
1 parent 07df3df commit a1f590b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mmd_tools/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,6 @@ def materials(self):
materials = {} # Use dict instead of set to guarantee preserve order
for mesh in self.meshes():
materials.update((slot.material,0) for slot in mesh.material_slots if slot.material is not None)
materials.update((material,0) for material in mesh.data.materials if material is not None)
return list(materials.keys())

def renameBone(self, old_bone_name, new_bone_name):
Expand Down

0 comments on commit a1f590b

Please sign in to comment.