Skip to content

Commit

Permalink
Fix crash when switching main screen from a disabled plugin main scre…
Browse files Browse the repository at this point in the history
…en if code editor is floating.
  • Loading branch information
Daylily-Zeleen committed May 1, 2024
1 parent d282e4f commit 5c133f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3486,6 +3486,10 @@ void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_chan
}
}

if (singleton->editor_plugin_screen == p_editor) {
singleton->editor_plugin_screen = nullptr;
}

singleton->editor_table.erase(p_editor);
}
p_editor->make_visible(false);
Expand Down

0 comments on commit 5c133f5

Please sign in to comment.