1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

-Properly keep animation editor and viewport state while switching scene tabs

This commit is contained in:
Juan Linietsky
2015-08-29 22:59:25 -03:00
parent b4acd18f32
commit 1bad27e1f8
4 changed files with 67 additions and 1 deletions

View File

@@ -151,6 +151,10 @@ protected:
static void _bind_methods();
public:
Dictionary get_state() const;
void set_state(const Dictionary& p_state);
void ensure_visibility();
void set_undo_redo(UndoRedo *p_undo_redo) { undo_redo=p_undo_redo; }
@@ -167,6 +171,9 @@ class AnimationPlayerEditorPlugin : public EditorPlugin {
public:
virtual Dictionary get_state() const { return anim_editor->get_state(); }
virtual void set_state(const Dictionary& p_state) { anim_editor->set_state(p_state); }
virtual String get_name() const { return "Anim"; }
bool has_main_screen() const { return false; }
virtual void edit(Object *p_node);