summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-09-14 01:02:36 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-09-14 01:02:36 -0300
commit1931d228fa6c825c2fff4becacb69c96292e841c (patch)
tree9f57b54205f3092aa99abaa612e18b8977ecefd9
parent4773c19e6099a29fc19f566f6c590330e223c6d0 (diff)
parent1add3b3daccfd6d8f8f8ab2d0ab8a9795097abf2 (diff)
Merge pull request #2469 from vnen/fix-2418
Set AnimationEditor UndoRedo reference on creation, Fix #2418
-rw-r--r--tools/editor/plugins/animation_player_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/plugins/animation_player_editor_plugin.cpp b/tools/editor/plugins/animation_player_editor_plugin.cpp
index 344e42c13b..f8c484e886 100644
--- a/tools/editor/plugins/animation_player_editor_plugin.cpp
+++ b/tools/editor/plugins/animation_player_editor_plugin.cpp
@@ -1393,6 +1393,7 @@ AnimationPlayerEditorPlugin::AnimationPlayerEditorPlugin(EditorNode *p_node) {
editor=p_node;
anim_editor = memnew( AnimationPlayerEditor(editor) );
+ anim_editor->set_undo_redo(editor->get_undo_redo());
editor->get_animation_panel()->add_child(anim_editor);
/*
editor->get_viewport()->add_child(anim_editor);