ソースを参照

Merge pull request #49372 from KoBeWi/do_not_save_do_not_save_do_not_save

Rémi Verschelde 4 年 前
コミット
553d4a8ba6
1 ファイル変更3 行追加1 行削除
  1. 3 1
      editor/plugins/script_editor_plugin.cpp

+ 3 - 1
editor/plugins/script_editor_plugin.cpp

@@ -2451,7 +2451,9 @@ void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const
 		script_list->select(script_list->find_metadata(i));
 
 		// Save the current script so the changes can be picked up by an external editor.
-		save_current_script();
+		if (!_is_built_in_script(script.ptr())) { // But only if it's not built-in script.
+			save_current_script();
+		}
 
 		break;
 	}