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

Remember the value of the animation timeline scale slider for each animation #27908

Open
mitchcurtis opened this issue Apr 10, 2019 · 1 comment

Comments

@mitchcurtis
Copy link
Contributor

  • Create an animation.
  • Drag the timeline scale slider to some non-default value.
  • Save the project.
  • Close the project.
  • Reopen the project. The value that was set with the slider has been forgotten. The expected behaviour is that the value is saved in e.g. the project file or some file specific to the project.
@mitchcurtis mitchcurtis changed the title Remember scale slider's value for each animation Remember the value of the animation timeline scale slider for each animation Apr 10, 2019
@rakkarage
Copy link
Contributor

This currently works for a single Animation in a single AnimationPlayer per scene, as long as the AnimationPlayer is selected when saved.

  • Data is stored in .godot/editor/{Scene}.tscn-editstate-{guid}
  • From:
    void EditorNode::_save_editor_states(const String &p_file, int p_idx) {
 Anim={
 "animation": "zig",
 "player": NodePath("AnimationPlayer"),
 "track_editor_state": {
 "fps_mode": false,
 "offset": 0.0,
 "v_scroll": 0.0,
 "zoom": 2.0
 },
 "visible": true
 }

If AnimationPlayer is NOT selected and you save, and close and reopen scene tab. Gets into a state where the Animation window is open but no animation selected. If saved again in this state the data gets overwritten with empty data and zoom is lost. If AnimationPlayer is NOT selected you can also just change tabs and back to get into this state.

 Anim={
 "visible": true
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants