Fix resource preview in remote inspector
The specific case for object reference seems unnecessary, as `RES res = var` already does the work. The case where REF is invalid is never hit in the case of already freed objects. The assignment `res = *r` was causing the resource to be always invalidated on the 3.2 branch.
This commit is contained in:
parent
07ada02cb4
commit
12685df423
|
@ -361,15 +361,6 @@ void SceneDebuggerObject::serialize(Array &r_arr, int p_max_size) {
|
||||||
|
|
||||||
RES res = var;
|
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;
|
Array prop;
|
||||||
prop.push_back(pi.name);
|
prop.push_back(pi.name);
|
||||||
prop.push_back(pi.type);
|
prop.push_back(pi.type);
|
||||||
|
|
Loading…
Reference in New Issue