소스 검색

Merge pull request #21850 from DualMatrix/error_spam

Fixed error spam when inspecting remote tree
Rémi Verschelde 7 년 전
부모
커밋
5007b415c1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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());
 			prop.push_back(Variant());
 		} else {
 		} else {
 			prop.push_back(pi.hint);
 			prop.push_back(pi.hint);
-			if (res.is_null())
+			if (res.is_null() || res->get_path().empty())
 				prop.push_back(pi.hint_string);
 				prop.push_back(pi.hint_string);
 			else
 			else
 				prop.push_back(String("RES:") + res->get_path());
 				prop.push_back(String("RES:") + res->get_path());