You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)// HereconstfileDir=path.dirname(file)consttransformOut=path.join(fileDir,name+'-transformed.glb')if(options.setLog)options.setLog((state)=>[...state,'transforming '+transformOut])awaittransform(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
The text was updated successfully, but these errors were encountered: