diff options
author | DualMatrix <piet.goris@gmail.com> | 2018-09-18 02:05:50 +0200 |
---|---|---|
committer | DualMatrix <piet.goris@gmail.com> | 2018-09-19 11:32:11 +0200 |
commit | 54286e1711ba08a474a18a3febfbbe3c880d23e3 (patch) | |
tree | 5b613d50a6df8368a4373fcf89652120e710cf15 /core/script_debugger_remote.cpp | |
parent | 5614692a1a82ef0ce6fa1d268903ff38787bd728 (diff) | |
download | redot-engine-54286e1711ba08a474a18a3febfbbe3c880d23e3.tar.gz |
Fixed error spam in remote debugger
Fixed error spam in remote debugger.
Diffstat (limited to 'core/script_debugger_remote.cpp')
-rw-r--r-- | core/script_debugger_remote.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/script_debugger_remote.cpp b/core/script_debugger_remote.cpp index 704b4d1fdc..fe1dc2cdd1 100644 --- a/core/script_debugger_remote.cpp +++ b/core/script_debugger_remote.cpp @@ -662,11 +662,14 @@ void ScriptDebuggerRemote::_send_object_id(ObjectID p_id) { prop.push_back(Variant()); } else { prop.push_back(pi.hint); - if (res.is_null() || res->get_path().empty()) - prop.push_back(pi.hint_string); - else - prop.push_back(String("RES:") + res->get_path()); + prop.push_back(pi.hint_string); prop.push_back(pi.usage); + if (!res.is_null()) { + var = String("PATH") + res->get_path(); + } else if (var.get_type() == Variant::STRING) { + var = String("DATA") + var; + } + prop.push_back(var); } send_props.push_back(prop); |