You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
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.
This commit is contained in:
@@ -3016,7 +3016,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);
|
||||
|
||||
Reference in New Issue
Block a user