kcoley / gltf2usd

command-line utility for converting glTF 2.0 models to USD
MIT License
263 stars 39 forks source link

Material with the same name don't convert correctly. #147

Closed ghost closed 5 years ago

ghost commented 5 years ago

We got a gltf with 3 meshes, each uses a different material.

Those 3 materials have the same name in the glTF file. (As per the spec, the material name can be the same or even omitted)

The USDZ generated uses the same material for all 3 meshes.

kcoley commented 5 years ago

@sayduck-daniel I just merged a fix which appends the index to the material names: https://github.com/kcoley/gltf2usd/pull/148