Explorar o código

Fixes display of programmatically created value in remote inspector

(cherry picked from commit e3b7b861b003d51c944793b2e638473db5b2c09b)
Haoyu Qiu %!s(int64=4) %!d(string=hai) anos
pai
achega
c804baf6a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/debugger/script_debugger_remote.cpp

+ 1 - 1
scene/debugger/script_debugger_remote.cpp

@@ -709,7 +709,7 @@ void ScriptDebuggerRemote::_send_object_id(ObjectID p_id) {
 			prop.push_back(pi.hint_string);
 			prop.push_back(pi.usage);
 
-			if (!res.is_null()) {
+			if (!res.is_null() && !res->get_path().empty()) {
 				var = res->get_path();
 			}