diff options
author | ArrowInAKnee <gatexxl@gmail.com> | 2021-01-16 01:22:09 +0300 |
---|---|---|
committer | ArrowInAKnee <gatexxl@gmail.com> | 2021-01-16 01:22:09 +0300 |
commit | 13e7f1193a6a44e4fb1b497faeb154f4aa6aebd6 (patch) | |
tree | 9bd6d94cbf07f42c282b27ed74171ce557c50a5b | |
parent | 05f5c8725ba7d2b2132d3b0a54dc18a46de83411 (diff) |
Remove unnecessary file existence check when saving scene
-rw-r--r-- | editor/editor_node.cpp | 2 |
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 { |