X Tutup
Skip to content

Preserve mesh, material, and texture names in GLTF export#109475

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
nikitalita:preserve-gltf-names
Oct 21, 2025
Merged

Preserve mesh, material, and texture names in GLTF export#109475
Repiteo merged 1 commit intogodotengine:masterfrom
nikitalita:preserve-gltf-names

Conversation

@nikitalita
Copy link
Contributor

When serializing a Godot scene to a GLTF document, the original mesh, material, and texture names are not currently being serialized. This makes it difficult to compare exported scenes with the original and verify that GLTF exports are accurate. This changes the serialization process such that if the meshes, materials, and textures have names, we use them and we save them to the document.

@nikitalita nikitalita requested a review from a team as a code owner August 9, 2025 22:42
@fire
Copy link
Member

fire commented Aug 9, 2025

I support this, but I am not able to review during the next week. @aaronfranke and @lyuma are around.

@aaronfranke
Copy link
Member

aaronfranke commented Aug 10, 2025

Coincidentally I just made a PR for doing this with mesh names 2 days ago: #109421

Can you make sure that the code in your PR matches this for meshes, and works the same way for surface, material, and texture names?

@nikitalita
Copy link
Contributor Author

Coincidentally I just made a PR for doing this with mesh names 2 days ago: #109421

Can you make sure that the code in your PR matches this for meshes, and works the same way for surface, material, and texture names?

Ok, I rebased on top of yours and left all your changes intact, and I added my changes for materials and images.

@nikitalita
Copy link
Contributor Author

4.5 is forked, so this could be reviewed and merged into master now.

@AThousandShips
Copy link
Member

4.5 has not been forked yet, the documentation has but not the main repo

Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@aaronfranke aaronfranke moved this to Ready for review in Asset Pipeline Issue Triage Oct 15, 2025
@Repiteo Repiteo merged commit 8f7cb07 into godotengine:master Oct 21, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in Asset Pipeline Issue Triage Oct 21, 2025
@Repiteo
Copy link
Contributor

Repiteo commented Oct 21, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup