+1 vote

Godot 2.1.4 Stable Official Linux

Hi all,

I have a scene, let's say it looks like this:

- animation player
- sprite

I make an animation, it looks great. I'm a happy guy.

I then change it to:

- Container
- - animation player
- - sprite

So now the animation player and the sprite sit under the Container.
The animation is broken and doesn't play, nor does the game build.

I have a look at the animation player and funnily enough the path HAS updated. So it's showing in the keyframe channel Container/sprite but when I scrub the time slide nothing happens and there is a line through the path to the node it's animating.

What can I do to make it work again without having to re-do the animation? I have about 20 scenes that I had to change the hierarchy of and it's broken a lot of detailed animation.

Any help greatly appreciated.

in Engine by (824 points)

2 Answers

0 votes
Best answer

Try simply removing the Container/ part of the animation track path.

by (1,554 points)
selected by

Thank you good person! Saved me HOURS of work. Much appreciated.

+3 votes

Looks like you have found an interesting bug:

AnimationPlayer tries to fix the paths on the animations when you move the nodes, but sibling nodes do not need that, so the path that is in this case:


gets changed to:


Which is wrong, the other path keeps working.

Also depends on the order you move the nodes, if you move the AnimationPlayer first, the path is correct, but if you move it last, no.

TL;DR: AnimationPlayer does not fix the path correctly when moved as a sibling of an animated node.

ps: ayou can edit manually the paths on the tracks, just remove the added container.

by (7,894 points)

Indeed it's a bug. Removed as /u/mollusca suggested and gone. Should I report this (seeing as it's not a 3.x build)?

May affect 3 too but, in any case, 2 is still getting fixes so you can report it.

Ran into this in 3.2.2, so its definitely still a problem.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.