Merge pull request #2469 from vnen/fix-2418

Set AnimationEditor UndoRedo reference on creation, Fix #2418
This commit is contained in:
Juan Linietsky 2015-09-14 01:02:36 -03:00
commit 1931d228fa

View File

@ -1393,6 +1393,7 @@ AnimationPlayerEditorPlugin::AnimationPlayerEditorPlugin(EditorNode *p_node) {
editor=p_node; editor=p_node;
anim_editor = memnew( AnimationPlayerEditor(editor) ); anim_editor = memnew( AnimationPlayerEditor(editor) );
anim_editor->set_undo_redo(editor->get_undo_redo());
editor->get_animation_panel()->add_child(anim_editor); editor->get_animation_panel()->add_child(anim_editor);
/* /*
editor->get_viewport()->add_child(anim_editor); editor->get_viewport()->add_child(anim_editor);