Stopped save scene flicker, issue 4118

(cherry picked from commit 9d74b76a69)
This commit is contained in:
Paulb23 2016-03-26 20:31:23 +00:00 committed by Rémi Verschelde
parent 54625bb771
commit 729dc5da83
1 changed files with 6 additions and 2 deletions

View File

@ -2075,8 +2075,12 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
Node *scene = editor_data.get_edited_scene_root();
if (scene && scene->get_filename()!="") {
//_save_scene(scene->get_filename());
_save_scene_with_preview(scene->get_filename());
// save in background if in the script editor
if (_get_current_main_editor() == EDITOR_SCRIPT) {
_save_scene(scene->get_filename());
} else {
_save_scene_with_preview(scene->get_filename());
}
return;
};
// fallthrough to save_as