Remove unnecessary file existence check when saving scene

This commit is contained in:
ArrowInAKnee 2021-01-15 20:33:12 +03:00
parent 2583624f74
commit 5d8a24d1a5
1 changed files with 1 additions and 1 deletions

View File

@ -2280,7 +2280,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