Everything works fine except for the transformed glb, this file is processed in the root directory, I updated these lines in gltfjsx.js file and then I get the expected results:
if (options.transform) {
const { name } = path.parse(file)
// Here
const fileDir = path.dirname(file)
const transformOut = path.join(fileDir, name + '-transformed.glb')
if (options.setLog) options.setLog((state) => [...state, 'transforming ' + transformOut])
await transform(file, transformOut, {})
file = transformOut
}
I have this process inside my models directory to convert my fbx to glb and then to jsx:
Everything works fine except for the transformed glb, this file is processed in the root directory, I updated these lines in gltfjsx.js file and then I get the expected results:
Note: My script to run the process
npm run models
Let me know if I'm doing something wrong or if I can create a pull request with those changes