Procházet zdrojové kódy

Fixes display of programmatically created value in remote inspector

Haoyu Qiu před 4 roky
rodič
revize
e3b7b861b0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.hint_string);
 			prop.push_back(pi.usage);
 			prop.push_back(pi.usage);
 
 
-			if (!res.is_null()) {
+			if (!res.is_null() && !res->get_path().empty()) {
 				var = res->get_path();
 				var = res->get_path();
 			}
 			}