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