diff options
author | kobewi <kobewi4e@gmail.com> | 2023-02-15 17:29:52 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-02-15 17:29:52 +0100 |
commit | f579c0a79f4599687e1677dc5af9eb75e4be6b96 (patch) | |
tree | aff2aef8cb0f49b002b986eb8625c0174fa2cbe0 | |
parent | f2aae8fa5c2e9d9323832fb43c8446c2e518d698 (diff) |
Fix Save All trying to save empty scene paths
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 6d747ba6a8..ccbc7c3d74 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2518,7 +2518,7 @@ void ScriptEditor::save_all_scripts() { } else { // For built-in scripts, save their scenes instead. const String scene_path = edited_res->get_path().get_slice("::", 0); - if (!scenes_to_save.has(scene_path)) { + if (!scene_path.is_empty() && !scenes_to_save.has(scene_path)) { scenes_to_save.push_back(scene_path); } } |