| 129 | } |
| 130 | |
| 131 | void WeakRef::set_ref(const Ref<RefCounted> &p_ref) { |
| 132 | ref = p_ref.is_valid() ? p_ref->get_instance_id() : ObjectID(); |
| 133 | } |
| 134 | |
| 135 | void WeakRef::_bind_methods() { |
| 136 | ClassDB::bind_method(D_METHOD("get_ref"), &WeakRef::get_ref); |
no test coverage detected