From 05de7ce6caf441f8b64dd60d1837835f10d06520 Mon Sep 17 00:00:00 2001 From: reduz Date: Fri, 6 Nov 2020 22:29:22 -0300 Subject: Refactored variant setters/getters -Discern between named, indexed and keyed -Get direct access to functions for typed GDScript and GDNative bindings -Small changes to some classes in order to work with the new setget binder --- core/packed_data_container.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/packed_data_container.cpp') diff --git a/core/packed_data_container.cpp b/core/packed_data_container.cpp index e335ec0daa..f70482288d 100644 --- a/core/packed_data_container.cpp +++ b/core/packed_data_container.cpp @@ -39,6 +39,9 @@ Variant PackedDataContainer::getvar(const Variant &p_key, bool *r_valid) const { if (r_valid) { *r_valid = !err; } + if (err) { + return Object::getvar(p_key, r_valid); + } return ret; } -- cgit v1.2.3