mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-07 12:31:49 +02:00
Stop game on reloading project
(cherry picked from commit 8935cf17cf674b0cb027e5c82a21a64d3a43feb1)
This commit is contained in:
parent
7ad35d62ea
commit
d25bae8559
@ -1607,6 +1607,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_filename();
|
to_reopen = get_tree()->get_edited_scene_root()->get_filename();
|
||||||
|
Loading…
Reference in New Issue
Block a user