0 votes

Having several scenes containing animated sprites with playing enabled, I have noticed that whenever the scene is saved, the frame property of every animated sprite gets saved too, which means you need to reset them manually if you don't want a dirty git commit.
As a workaround, one could:

  • Set all animations to not playing, enable playing from code. This is easy but the annoyance is you either can't actually see any animations in the editor, or have to remember stopping and resetting all of them before committing changes.
  • Add a content filter in a .gitattributes file to scan for every line that contains the regex frame = \d+. Would probably work but may lead to unexpected results.

Any other ideas? Thanks.

Godot version v3.3.3.stable.arch_linux
in Engine by (1,261 points)

1 Answer

+1 vote
Best answer

You could upgrade to 3.4 beta4 and rely on the new animation reset track feature.

by (11,917 points)
selected by
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.