[Editor] Fix invalid run args when remote debug is unavailable.
This commit is contained in:
parent
3ff7964145
commit
59e74374c0
1 changed files with 5 additions and 2 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue