mitsuba-renderer / mitsuba-blender

Mitsuba integration add-on for Blender
BSD 3-Clause "New" or "Revised" License
278 stars 36 forks source link

Geometry export: use unique names for repeated materials #67

Closed merlinND closed 1 year ago

merlinND commented 1 year ago

When a user assigns the same material to multiple material slots, the previous logic would use the same name for all of them, and therefore overwrite the exported mesh file repeatedly. Only the mesh part that appeared last in the materials slot list would remain. This PR ensures that unique names are used for the output meshes.