aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorGeorge Marques2016-09-16 15:02:01 -0300
committerRémi Verschelde2016-10-09 17:12:15 +0200
commit6a0d47f34cdbbcfcf19eaa79de410814c841ce21 (patch)
treee809b751880de7f8ba44fd6c9aefc9f431d9b408 /tools/editor/editor_node.cpp
parente6d49fb54c2a7896fc95b6063cfead178f1540b7 (diff)
downloadgodot-6a0d47f34cdbbcfcf19eaa79de410814c841ce21.tar.gz
godot-6a0d47f34cdbbcfcf19eaa79de410814c841ce21.tar.zst
godot-6a0d47f34cdbbcfcf19eaa79de410814c841ce21.zip
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)
Diffstat (limited to '')
-rw-r--r--tools/editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
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;i<singleton->main_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);