Repository: godot
Issue: Importing .glb files corrupts the textures and importing a .blend doesn't show the model at all
Labels: bug,topic:import

### Godot version

4.1.1

### System information

Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce MX110 (NVIDIA; 31.0.15.3742) - Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 Threads)

### Issue description

**GLB FILES**

Whenever I import a .glb file into godot from blender the textures that come with it are very corrupted. I'll just show a screenshot to give an idea of how much: 
![image](https://github.com/godotengine/godot/assets/39242060/9c7fe410-e281-491b-bf4f-e986d0ecc119)
All the pink and yellow is supposed to be black or white (they're metallic/roughness maps)

**BLEND FILES**

I tried importing the entire folder with the blend file but I get these errors: 
Keep in mind that this worked for a simple cube with a base colour, metallic and roughness map but didn't work for this: 

_Error received:_

```res://Bathysphere for Games_Bulb_BaseColour-Bulb_TransparencyMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Bulb_MetallicMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_IndicatorBase_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_IndicatorBase_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Gauge.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_GaugeFrame_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_GaugeFrame_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Screw_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Knob_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Terminal_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Terminal_MetallicMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Terminal_NormalMap.png: Texture detected as used as a normal map in 3D. Enabling red-green texture compression to reduce memory usage (blue channel is discarded).
res://Bathysphere for Games_Terminal_NormalMap.png: Texture detected as used as a roughness map in 3D. Enabling roughness limiter based on the detected associated normal map at res://Bathysphere for Games_Terminal_NormalMap.png.
res://Bathysphere for Games_Terminal_NormalMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Chair_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Chair_MetallicMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_ChairNormalMap.png: Texture detected as used as a normal map in 3D. Enabling red-green texture compression to reduce memory usage (blue channel is discarded).
res://Bathysphere for Games_ChairNormalMap.png: Texture detected as used as a roughness map in 3D. Enabling roughness limiter based on the detected associated normal map at res://Bathysphere for Games_ChairNormalMap.png.
res://Bathysphere for Games_ChairNormalMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Handle_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Handle_MetallicMap-Handle_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Door_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Door_MetallicMap-Door_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Bathysphere _BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Bathysphere_MetallicMap-Bathysphere_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
  Attempted to call reimport_files() recursively, this is not allowed.
  Safe save failed. This may be a permissions problem, but also may happen because you are running a paranoid antivirus. If this is the case, please switch to Windows Defender or disable the 'safe save' option in editor settings. This makes it work, but increases the risk of file corruption in a crash.
res://Bathysphere for Games_Bulb_BaseColour-Bulb_TransparencyMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Bulb_MetallicMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_IndicatorBase_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_IndicatorBase_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Gauge.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_GaugeFrame_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_GaugeFrame_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Screw_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Knob_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Terminal_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Terminal_MetallicMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Terminal_NormalMap.png: Texture detected as used as a normal map in 3D. Enabling red-green texture compression to reduce memory usage (blue channel is discarded).
res://Bathysphere for Games_Terminal_NormalMap.png: Texture detected as used as a roughness map in 3D. Enabling roughness limiter based on the detected associated normal map at res://Bathysphere for Games_Terminal_NormalMap.png.
res://Bathysphere for Games_Terminal_NormalMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Chair_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Chair_MetallicMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_ChairNormalMap.png: Texture detected as used as a normal map in 3D. Enabling red-green texture compression to reduce memory usage (blue channel is discarded).
res://Bathysphere for Games_ChairNormalMap.png: Texture detected as used as a roughness map in 3D. Enabling roughness limiter based on the detected associated normal map at res://Bathysphere for Games_ChairNormalMap.png.
res://Bathysphere for Games_ChairNormalMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Handle_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Handle_MetallicMap-Handle_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Door_BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Door_MetallicMap-Door_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Bathysphere _BaseColour.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
res://Bathysphere for Games_Bathysphere_MetallicMap-Bathysphere_RoughnessMap.png: Texture detected as used in 3D. Enabling mipmap generation and setting the texture compression mode to VRAM Compressed (S3TC/ETC/BPTC).
  Can't open file from path 'res://.godot/imported/Bathysphere for Games-7ef79ffa540d55004b9d6637fb280999.bin'.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  modules/gltf/gltf_document.cpp:1331 - Condition "(int)(offset + buffer_end) > buffer.size()" is true. Returning: ERR_PARSE_ERROR
  scene/resources/surface_tool.cpp:932 - Condition "r_vertex->size() == 0" is true.
  scene/resources/surface_tool.cpp:1151 - Condition "!(format & Mesh::ARRAY_FORMAT_TEX_UV)" is true.
  scene/resources/surface_tool.cpp:693 - Condition "index_array.size() == 0" is true. Continuing.
  scene/resources/importer_mesh.cpp:170 - Condition "vertex_count == 0" is true.
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
  scene/resources/importer_mesh.cpp:675 - Condition "surfaces.size() == 0" is true. Returning: Ref<ArrayMesh>()
```



### Steps to reproduce

- Start a basic 3D Project
- Drag and drop the glb file
- Drag and drop the .blend file

### Minimal reproduction project

I will link the project file _without_ the .glb or .blend file so you could add them and test them out independently.
[Minimal Reproduction Project.zip](https://github.com/godotengine/godot/files/12709885/Minimal.Reproduction.Project.zip)

The .glb: 
[Bathysphere for Games.zip](https://github.com/godotengine/godot/files/12709891/Bathysphere.for.Games.zip)

The folder containing the .blend and all the textures: 
[Bathysphere for Games.zip](https://github.com/godotengine/godot/files/12709892/Bathysphere.for.Games.zip)