From 13e7f1193a6a44e4fb1b497faeb154f4aa6aebd6 Mon Sep 17 00:00:00 2001 From: ArrowInAKnee Date: Sat, 16 Jan 2021 01:22:09 +0300 Subject: Remove unnecessary file existence check when saving scene --- editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3