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 perform_node_renames handling of AnimationMixers track paths #84282

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

SaracenOne
Copy link
Member

@SaracenOne SaracenOne commented Nov 1, 2023

Closes #83936

This modifies the handling of AnimationPlayers in the perform_node_renames method by moving it before the properties are modified which allows it still retain the correct path to its root. Additionally, since AnimationPlayers and AnimationTrees have been refactored in to the base AnimationMixer class, it now provides handling for AnimationTrees too, but will only run it for AnimationTrees which don't point to an AnimationPlayer.

Additionally, I have restricted path renaming from read-only animations and modifications to tracks marked as imported. This feels like it makes sense since any modifications to these would not be preserved anyway.

There are still other issues discovered around AnimationMixer root nodes in respect to how they're meant to behave, but those issues are out of scope of the reported bug.

Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

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

One issue and one nit, but otherwise changes look good to me.

@SaracenOne
Copy link
Member Author

Fixed now, don't know how that one slipped past me.

@YuriSizov YuriSizov merged commit c929f79 into godotengine:master Nov 3, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

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.

Error when reparenting AnimationPlayer, can break animation tracks
2 participants