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

Fix animation name replacement logic for scene resource reimporting #102226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PierceLBrooks
Copy link
Contributor

Sometimes upon invoking "Reimport" on certain external scene resources whose original formats support animations ( and likely specifically after the scene has already been instantiated as a child under another scene's root node ), the following error log message may appear:

Invalid animation name: 'my_animation_library_name/my_animation_name'.

Such an occurrence is due to how the AnimationMixer::get_animation_list method is implemented to return registered animation names with a prefix of the name of the owning animation library if it is not the default library which is nameless ( https://github.com/PierceLBrooks/godot/blob/plb/import-scene-res-anim-name-replacement-bug/scene/animation/animation_mixer.cpp#L146 ).

My changes will resolve this issue.

… "/" prefix scheme from "get_animation_list"
@PierceLBrooks PierceLBrooks requested a review from a team as a code owner January 31, 2025 04:31
@Chaosus Chaosus added this to the 4.4 milestone Jan 31, 2025
@fire fire requested a review from a team January 31, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

2 participants