From c55e68d311a90f5d1af17910baca88cc64e7a54b Mon Sep 17 00:00:00 2001 From: Daniel Ting Date: Wed, 8 Jul 2020 11:53:18 -0500 Subject: [PATCH] Do not try to save internal scripts Fixes #40175 (cherry picked from commit d6c979d91b6753866400cf8824fc14b0bf58a3a8) --- editor/plugins/script_editor_plugin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 53642a30893..99c3d87168f 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -582,11 +582,14 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) { ScriptEditorBase *current = Object::cast_to(tab_container->get_child(selected)); if (current) { + Ref