From 6a0d47f34cdbbcfcf19eaa79de410814c841ce21 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 16 Sep 2016 15:02:01 -0300 Subject: Add a function to plugin get the main screen parent - Fix a bug where the main screen button did not disappear when the plugin was deactivated. (cherry picked from commit 98e7c1edbab6605a7578643485e1e88b61fd83d7) --- tools/editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/editor/editor_node.cpp') diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index ea39b0313..90f793cf7 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -3013,7 +3013,7 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor) { for(int i=0;imain_editor_buttons.size();i++) { - if (p_editor->get_name()==singleton->main_editor_buttons[i]->get_name()) { + if (p_editor->get_name()==singleton->main_editor_buttons[i]->get_text()) { memdelete( singleton->main_editor_buttons[i] ); singleton->main_editor_buttons.remove(i); -- cgit v1.2.3-70-g09d2