Merge pull request #62125 from cow-neaz/stop_game_on_reloading_project
Stop game on reloading project - Fix #62088 issue
This commit is contained in:
commit
362f53ff02
1 changed files with 4 additions and 0 deletions
|
@ -1792,6 +1792,10 @@ void EditorNode::save_scene_list(Vector<String> p_scene_filenames) {
|
||||||
void EditorNode::restart_editor() {
|
void EditorNode::restart_editor() {
|
||||||
exiting = true;
|
exiting = true;
|
||||||
|
|
||||||
|
if (editor_run.get_status() != EditorRun::STATUS_STOP) {
|
||||||
|
editor_run.stop();
|
||||||
|
}
|
||||||
|
|
||||||
String to_reopen;
|
String to_reopen;
|
||||||
if (get_tree()->get_edited_scene_root()) {
|
if (get_tree()->get_edited_scene_root()) {
|
||||||
to_reopen = get_tree()->get_edited_scene_root()->get_scene_file_path();
|
to_reopen = get_tree()->get_edited_scene_root()->get_scene_file_path();
|
||||||
|
|
Loading…
Reference in a new issue