You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Improve 2D/3D main screen auto-switching logic
Co-authored-by: Kit Bishop <kitbdev@gmail.com>
This commit is contained in:
@@ -1849,15 +1849,6 @@ void ScriptEditor::_notification(int p_what) {
|
||||
}
|
||||
}
|
||||
|
||||
bool ScriptEditor::can_take_away_focus() const {
|
||||
ScriptEditorBase *current = _get_current_editor();
|
||||
if (current) {
|
||||
return current->can_lose_focus_on_node_selection();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptEditor::_close_builtin_scripts_from_scene(const String &p_scene) {
|
||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||
ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
|
||||
|
||||
Reference in New Issue
Block a user