From f06f5747355027f63de3c34646cb956346f15cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 2 Apr 2016 23:11:38 +0200 Subject: [PATCH] Fix building against 2.0 API 812de22 used a method from the new plugin API in master, so it failed building. --- tools/editor/plugins/particles_2d_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/plugins/particles_2d_editor_plugin.cpp b/tools/editor/plugins/particles_2d_editor_plugin.cpp index 297145f408c..81b79afdd90 100644 --- a/tools/editor/plugins/particles_2d_editor_plugin.cpp +++ b/tools/editor/plugins/particles_2d_editor_plugin.cpp @@ -165,7 +165,7 @@ Particles2DEditorPlugin::Particles2DEditorPlugin(EditorNode *p_node) { undo_redo=editor->get_undo_redo(); toolbar = memnew( HBoxContainer ); - add_control_to_container(CONTAINER_CANVAS_EDITOR_MENU, toolbar); + CanvasItemEditor::get_singleton()->add_control_to_menu_panel(toolbar); toolbar->hide(); toolbar->add_child( memnew( VSeparator ) );