aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/particles_2d_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2016-04-02 23:11:38 +0200
committerRémi Verschelde2016-04-02 23:11:38 +0200
commitf06f5747355027f63de3c34646cb956346f15cd2 (patch)
tree035699a071b89a7ae7f0d5b50c4053c48cbc03ea /tools/editor/plugins/particles_2d_editor_plugin.cpp
parentaac3b9db5cb3be1155dd46aa588f0ae5cf18ba16 (diff)
downloadgodot-f06f5747355027f63de3c34646cb956346f15cd2.tar.gz
godot-f06f5747355027f63de3c34646cb956346f15cd2.tar.zst
godot-f06f5747355027f63de3c34646cb956346f15cd2.zip
Fix building against 2.0 API
812de22 used a method from the new plugin API in master, so it failed building.
Diffstat (limited to 'tools/editor/plugins/particles_2d_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/particles_2d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/particles_2d_editor_plugin.cpp b/tools/editor/plugins/particles_2d_editor_plugin.cpp
index 297145f40..81b79afdd 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 ) );