Merge pull request #21850 from DualMatrix/error_spam

Fixed error spam when inspecting remote tree
This commit is contained in:
Rémi Verschelde 2018-09-10 17:30:55 +02:00 committed by GitHub
commit 5007b415c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());