Fix reloading current scene forgetting path
Scene was stopped before running which cleared the last run scene, forcing it to run the currently edited scene instead
This commit is contained in:
@ -273,12 +273,13 @@ void EditorRunBar::play_main_scene(bool p_from_native) {
|
||||
}
|
||||
|
||||
void EditorRunBar::play_current_scene(bool p_reload) {
|
||||
String last_current_scene = run_current_filename; // This is necessary to have a copy of the string.
|
||||
|
||||
EditorNode::get_singleton()->save_default_environment();
|
||||
stop_playing();
|
||||
|
||||
current_mode = RunMode::RUN_CURRENT;
|
||||
if (p_reload) {
|
||||
String last_current_scene = run_current_filename; // This is necessary to have a copy of the string.
|
||||
_run_scene(last_current_scene);
|
||||
} else {
|
||||
_run_scene();
|
||||
|
||||
Reference in New Issue
Block a user