Explorar o código

Fixed error spam when inspecting remote tree

Fixed error spam when inspecting remote tree, fixes #20365
DualMatrix %!s(int64=7) %!d(string=hai) anos
pai
achega
35248a03be
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/script_debugger_remote.cpp

+ 1 - 1
core/script_debugger_remote.cpp

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