Skip to content

Conversation

marchcat
Copy link
Contributor

@marchcat marchcat commented Jun 9, 2025

Process nodes through the scene hierarchy as defined in the GLTF file instead of attempting to reconstruct parent-child relationships. This ensures proper import of models created by GLTF transform tools.

Process nodes through the scene hierarchy as defined in the GLTF file
instead of attempting to reconstruct parent-child relationships.
This ensures proper import of models created by GLTF transform tools.
@marchcat marchcat merged commit b4fb66c into project/gltf_mesh_import Jun 9, 2025
6 checks passed
@marchcat marchcat deleted the marchcat/gltf-4165-4170 branch June 9, 2025 19:58
@akleshchev
Copy link
Contributor

Should we even support more than one scene?

@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2025
@marchcat
Copy link
Contributor Author

marchcat commented Jun 9, 2025

Yes, GLTF files can have multiple scenes.

@akleshchev
Copy link
Contributor

akleshchev commented Jun 9, 2025

They do, but should they really be uploaded all at once? instead of something like 'Select a scene to upload'.
What if each one is rigged? A lot of things will fail.

Comment on lines +271 to +272
// Process the default scene (or first scene if no default)
S32 scene_idx = mGLTFAsset.mScene >= 0 ? mGLTFAsset.mScene : 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an answer to your question.
We don't load multiple scenes for now.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GLTF Mesh Import: Meshes Created by GLTF Transform tools do not show all parts

2 participants