Set AnimationEditor UndoRedo reference on creation

Fix #2418
This commit is contained in:
George Marques 2015-09-13 16:21:09 -03:00
parent 4773c19e60
commit 1add3b3dac
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D

View File

@ -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);