Open
Description
opened on Nov 7, 2024
Tested versions
- Reproducible with GLTF: Don't give up loading a texture if importing it fails #96778
System information
n/a
Issue description
#96778 introduces fallback mechanism to write textures to the disk if import fails, but this does not work well with blender files.
Specifically the issue is with this line
godot/modules/gltf/gltf_document.cpp
Line 4089 in 77d6283
.blend files get converted to .gltf and placed in res://.godot/imported folder, so any external textures referenced are processed relative to that.
Considering a file layout like this
.godot/imported/model.gltf
assets/model.blend
assets/texture.png
The code will try to import res://.godot/imported/../../assets/texture.png, fails on the check and thinks it's placed in .imported folder and falls through to writing copy of the texture to the disk and will import that.
Steps to reproduce
- open the attached project
- observe the texture gets duplicated after import finishes
Activity