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

GLTF: Improve logic for keeping track of the real root node #80272

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Aug 4, 2023

This PR improves the logic for keeping track of the real root node. There is now a method called _generate_scene_node_tree which is the parent method that generates a single root node, and generates nodes under it (starting with the GLTF root nodes). In the current master, the GLTF importer fishes out the real root node by grabbing a GLTF root node and then getting its parent, super janky.

Copy link
Member

@adamscott adamscott left a comment

Choose a reason for hiding this comment

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

Reviewed during the #animation/#asset-pipeline meeting. This should be considered a bug fix, because the logic it changes was plain wrong (wrong order of calls). Discussed about compatibility breaking, it would break compatibility in some cases if you have a node name that matches the GLTF scene name (which rarely happens).

We need to document the breaking compatibility.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Sep 16, 2023
@akien-mga akien-mga merged commit be53991 into godotengine:master Sep 16, 2023
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants