CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.68k stars 303 forks source link

Fix absolute path textures #213

Closed lilleyse closed 4 years ago

lilleyse commented 4 years ago

If the mtl file points to a texture as an absolute path then it appends the path to the mtl directory. I believe this regression happened in https://github.com/AnalyticalGraphicsInc/obj2gltf/commit/26db16d8920de3d8e9073e6b2ca2671bf5635c51 and may be fixed by changing path.join to path.resolve here.