Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using "Files" storage for meshes when importing gltf files causes only the first instance of a mesh to reference the mesh file (fixed in master) #49990

Open
Arnklit opened this issue Jun 29, 2021 · 3 comments

Comments

@Arnklit
Copy link
Contributor

Arnklit commented Jun 29, 2021

Godot version

3.3.2.Stable

System information

Windows 10. OpenGL ES 3.0 Renderer: Intel(R) UHD Graphics 620

Issue description

Using "Files" storage for meshes when importing gltf files causes only the first instance of a mesh to reference the mesh file.
The remaining mesh instances will still have resources pointed at the gltf file.

image
image
image

Steps to reproduce

  1. Set up a file with multiple objects referencing the same mesh in Blender.
  2. Export to GLTF.
  3. Import and set mesh storage to be files.
  4. Open new inherited version of gltf and select the different meshes to see what resource they are pointing to.

Minimal reproduction project

separate_mesh_import_bug.zip

@fire
Copy link
Member

fire commented Jun 30, 2021

Does this happen for collada or obj (when loaded a scene instead of mesh mode)

@Arnklit
Copy link
Contributor Author

Arnklit commented Jun 30, 2021

The issue appears to be the same on Collada. I don't think you can compare obj as that seems to just output everything as a single simple mesh

@Arnklit
Copy link
Contributor Author

Arnklit commented Jun 5, 2022

Tested this in Godot 4 and it's fixed there. I guess the importer is completely different there.

@akien-mga akien-mga added this to the 3.x milestone Jun 5, 2022
@Calinou Calinou changed the title Using "Files" storage for meshes when importing gltf files causes only the first instance of a mesh to reference the mesh file Using "Files" storage for meshes when importing gltf files causes only the first instance of a mesh to reference the mesh file (fixed in master) Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants