diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-11-05 21:59:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 21:59:31 +0100 |
commit | 13f1d8096032bf572d5071c5bf9f61de0a055fed (patch) | |
tree | ca67db96d764b659f82f454d0819a19cea27447a /editor | |
parent | 6882890a34528e056f13020798f4a473046990bb (diff) | |
parent | 59e74374c0a6560433c8c3088bdb97fe26e2ea57 (diff) |
Merge pull request #68292 from Faless/web/4.x_editor_fixes
[Web] Fix shutdown, force WebGL2, fix editor run args.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_run.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/editor_run.cpp b/editor/editor_run.cpp index 599df12bd3..41d5d1b0d2 100644 --- a/editor/editor_run.cpp +++ b/editor/editor_run.cpp @@ -57,8 +57,11 @@ Error EditorRun::run(const String &p_scene, const String &p_write_movie) { args.push_back(resource_path.replace(" ", "%20")); } - args.push_back("--remote-debug"); - args.push_back(EditorDebuggerNode::get_singleton()->get_server_uri()); + const String debug_uri = EditorDebuggerNode::get_singleton()->get_server_uri(); + if (debug_uri.size()) { + args.push_back("--remote-debug"); + args.push_back(debug_uri); + } args.push_back("--editor-pid"); args.push_back(itos(OS::get_singleton()->get_process_id())); |