diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-04-14 16:43:38 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-04-14 16:43:38 -0300 |
commit | 42032669238bdc807bc7b8f03fff87e6cb5847f1 (patch) | |
tree | 91b8d0b7c4aac8f8f53aca9e6f8b03bfacc2e8d0 /editor/plugins | |
parent | 3f76d2c2f3626f3a6e948577d737600b5163d389 (diff) |
Add support for FPS snap in Animation Editor.
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/animation_player_editor_plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index bbaf41e3cc..41f35c3bed 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -670,6 +670,7 @@ Dictionary AnimationPlayerEditor::get_state() const { if (EditorNode::get_singleton()->get_edited_scene() && is_visible_in_tree() && player) { d["player"] = EditorNode::get_singleton()->get_edited_scene()->get_path_to(player); d["animation"] = player->get_assigned_animation(); + d["track_editor_state"] = track_editor->get_state(); } return d; @@ -696,6 +697,10 @@ void AnimationPlayerEditor::set_state(const Dictionary &p_state) { _animation_edit(); } } + + if (p_state.has("track_editor_state")) { + track_editor->set_state(p_state["track_editor_state"]); + } } } |