Add support for specifying whether to play the current scene or a specific scene in XR or regular mode
The functionality is only activated for the XR Editor, when a project has OpenXR enabled.
This commit is contained in:
@@ -46,7 +46,7 @@ String EditorRun::get_running_scene() const {
|
||||
return running_scene;
|
||||
}
|
||||
|
||||
Error EditorRun::run(const String &p_scene, const String &p_write_movie) {
|
||||
Error EditorRun::run(const String &p_scene, const String &p_write_movie, const Vector<String> &p_run_args) {
|
||||
List<String> args;
|
||||
|
||||
for (const String &a : Main::get_forwardable_cli_arguments(Main::CLI_SCOPE_PROJECT)) {
|
||||
@@ -223,6 +223,12 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie) {
|
||||
args.push_back(p_scene);
|
||||
}
|
||||
|
||||
if (!p_run_args.is_empty()) {
|
||||
for (const String &run_arg : p_run_args) {
|
||||
args.push_back(run_arg);
|
||||
}
|
||||
}
|
||||
|
||||
String exec = OS::get_singleton()->get_executable_path();
|
||||
int instance_count = RunInstancesDialog::get_singleton()->get_instance_count();
|
||||
for (int i = 0; i < instance_count; i++) {
|
||||
|
||||
Reference in New Issue
Block a user