Remote debugger send the real instance of WeakRef referenced to

(cherry picked from commit 10f0451cc2)
This commit is contained in:
Geequlim 2018-01-23 13:01:12 +08:00 committed by Hein-Pieter van Braam
parent 258119a9cf
commit 99e72894a2

View file

@ -598,7 +598,13 @@ void ScriptDebuggerRemote::_send_object_id(ObjectID p_id) {
Array send_props;
for (int i = 0; i < properties.size(); i++) {
const PropertyInfo &pi = properties[i].first;
const Variant &var = properties[i].second;
Variant &var = properties[i].second;
WeakRef *ref = Object::cast_to<WeakRef>(var);
if (ref) {
var = ref->get_ref();
}
RES res = var;
Array prop;