Fixed error spam when inspecting remote tree

Fixed error spam when inspecting remote tree, fixes #20365
This commit is contained in:
DualMatrix 2018-09-08 00:48:12 +02:00
parent f1e5b7cf42
commit 35248a03be

View file

@ -661,7 +661,7 @@ void ScriptDebuggerRemote::_send_object_id(ObjectID p_id) {
prop.push_back(Variant());
} else {
prop.push_back(pi.hint);
if (res.is_null())
if (res.is_null() || res->get_path().empty())
prop.push_back(pi.hint_string);
else
prop.push_back(String("RES:") + res->get_path());