Fix building against 2.0 API

812de22 used a method from the new plugin API in master,
so it failed building.
This commit is contained in:
Rémi Verschelde 2016-04-02 23:11:38 +02:00
parent aac3b9db5c
commit f06f574735
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ Particles2DEditorPlugin::Particles2DEditorPlugin(EditorNode *p_node) {
undo_redo=editor->get_undo_redo(); undo_redo=editor->get_undo_redo();
toolbar = memnew( HBoxContainer ); toolbar = memnew( HBoxContainer );
add_control_to_container(CONTAINER_CANVAS_EDITOR_MENU, toolbar); CanvasItemEditor::get_singleton()->add_control_to_menu_panel(toolbar);
toolbar->hide(); toolbar->hide();
toolbar->add_child( memnew( VSeparator ) ); toolbar->add_child( memnew( VSeparator ) );