Browse Source

Merge pull request #38978 from nekomatata/remote-inspector-res-preview

Fix resource preview in remote inspector
Fabio Alessandrelli 5 năm trước cách đây
mục cha
commit
e7b11cc2aa
1 tập tin đã thay đổi với 0 bổ sung9 xóa
  1. 0 9
      scene/debugger/scene_debugger.cpp

+ 0 - 9
scene/debugger/scene_debugger.cpp

@@ -361,15 +361,6 @@ void SceneDebuggerObject::serialize(Array &r_arr, int p_max_size) {
 
 		RES res = var;
 
-		if (var.get_type() == Variant::OBJECT && var.is_ref()) {
-			REF r = var;
-			if (r.is_valid()) {
-				res = *r;
-			} else {
-				res = RES();
-			}
-		}
-
 		Array prop;
 		prop.push_back(pi.name);
 		prop.push_back(pi.type);