summaryrefslogtreecommitdiff
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-16 12:45:50 +0100
committerGitHub <noreply@github.com>2021-01-16 12:45:50 +0100
commit3099f6fae4da58f6c55d7bf4a060e21b5968a0bf (patch)
tree9bd6d94cbf07f42c282b27ed74171ce557c50a5b /editor/editor_node.cpp
parent05f5c8725ba7d2b2132d3b0a54dc18a46de83411 (diff)
parent13e7f1193a6a44e4fb1b497faeb154f4aa6aebd6 (diff)
Merge pull request #45221 from arrowinaknee/fix-new-scene-save
Remove unnecessary file existence check when saving scene
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index b41bf81161..e3d7f67d4a 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2316,7 +2316,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
int scene_idx = (p_option == FILE_SAVE_SCENE) ? -1 : tab_closing;
Node *scene = editor_data.get_edited_scene_root(scene_idx);
- if (scene && scene->get_filename() != "" && FileAccess::exists(scene->get_filename())) {
+ if (scene && scene->get_filename() != "") {
if (scene_idx != editor_data.get_edited_scene()) {
_save_scene_with_preview(scene->get_filename(), scene_idx);
} else {