kcoley / gltf2usd

command-line utility for converting glTF 2.0 models to USD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong texture lookup - PbrMetallicRoughness class uses index of texture to lookup image

jclarkk opened this issue · comments

wrong_lookup.zip
Hey,

In the attached example it seems like the code in Material.py is using the index here:
Material[6]['pbrMetallicRoughness']['baseColorTexture']['index']

To find the image which leads to an error since the index should be used to find the texture object in 'textures'.

@jclarkk good catch, I'll work on a fix for this

@jclarkk just merged a fix for this: #143

Great, thanks!