diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3d1ef907d..ebf5b38f9 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1607,6 +1607,10 @@ void EditorNode::save_scene_list(Vector p_scene_filenames) { void EditorNode::restart_editor() { exiting = true; + if (editor_run.get_status() != EditorRun::STATUS_STOP) { + editor_run.stop(); + } + String to_reopen; if (get_tree()->get_edited_scene_root()) { to_reopen = get_tree()->get_edited_scene_root()->get_filename();