X Tutup
Skip to content

GLTF: Fix getting animation track path#114581

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
nikitalita:gltf-fix-animation-track-path
Jan 5, 2026
Merged

GLTF: Fix getting animation track path#114581
akien-mga merged 1 commit intogodotengine:masterfrom
nikitalita:gltf-fix-animation-track-path

Conversation

@nikitalita
Copy link
Contributor

When attempting to get the animation node via the track path in _convert_animation(), we previously assumed that the root node for the animation player was always the parent. While root_node for the AnimationPlayer defaults to .., i.e. the parent, if the root_node is set to something else, getting the animation node will fail.

Changing getting the anim_player_parent according to the path set in root_node fixes the issue.

@nikitalita nikitalita requested a review from a team as a code owner January 3, 2026 23:55
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.

Makes sense to me. This defaults to ".." so it'll be the same in the common case and fix an issue in the uncommon case.

@aaronfranke aaronfranke added this to the 4.6 milestone Jan 4, 2026
@akien-mga akien-mga changed the title GLTF: fix getting animation track path GLTF: Fix getting animation track path Jan 5, 2026
@akien-mga akien-mga merged commit 4e18022 into godotengine:master Jan 5, 2026
20 checks passed
@akien-mga
Copy link
Member

Thanks!

rivie13 pushed a commit to rivie13/Phoenix-Agentic-Engine that referenced this pull request Feb 16, 2026
…ion-track-path

GLTF: Fix getting animation track path
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

X Tutup