1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Show a warning toast when saving a large text-based scene

Text-based scenes that contain large amounts of binary data
are slower to save and load. Their binary resources should be moved
to separate files, or the binary `.scn` format should be used instead.
This commit is contained in:
Hugo Locurcio
2021-10-11 17:54:44 +02:00
parent 68410acc61
commit cbb8f55b96
3 changed files with 31 additions and 0 deletions

View File

@@ -653,6 +653,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
// On save
_initial_set("filesystem/on_save/compress_binary_resources", true);
_initial_set("filesystem/on_save/safe_save_on_backup_then_rename", true);
_initial_set("filesystem/on_save/warn_on_saving_large_text_resources", true);
// EditorFileServer
_initial_set("filesystem/file_server/port", 6010);