mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Properly warn about the effects of changing an import type, as well as force editor restart. Fixes #23874
This commit is contained in:
@@ -1108,12 +1108,15 @@ void EditorNode::_save_scene(String p_file, int idx) {
|
||||
}
|
||||
}
|
||||
|
||||
void EditorNode::save_all_scenes_and_restart() {
|
||||
void EditorNode::save_all_scenes() {
|
||||
|
||||
_menu_option_confirm(RUN_STOP, true);
|
||||
exiting = true;
|
||||
|
||||
_save_all_scenes();
|
||||
}
|
||||
|
||||
void EditorNode::restart_editor() {
|
||||
|
||||
exiting = true;
|
||||
|
||||
String to_reopen;
|
||||
if (get_tree()->get_edited_scene_root()) {
|
||||
@@ -2305,7 +2308,8 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
||||
ProjectSettings::get_singleton()->set("rendering/quality/driver/driver_name", video_driver_request);
|
||||
ProjectSettings::get_singleton()->save();
|
||||
|
||||
save_all_scenes_and_restart();
|
||||
save_all_scenes();
|
||||
restart_editor();
|
||||
} break;
|
||||
default: {
|
||||
if (p_option >= IMPORT_PLUGIN_BASE) {
|
||||
|
||||
Reference in New Issue
Block a user