Merge pull request #45221 from arrowinaknee/fix-new-scene-save

Remove unnecessary file existence check when saving scene
This commit is contained in:
Rémi Verschelde 2021-01-16 12:45:50 +01:00 committed by GitHub
commit 3099f6fae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {