diff options
author | reduz <reduzio@gmail.com> | 2020-11-06 22:29:22 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2020-11-07 15:16:15 -0300 |
commit | 05de7ce6caf441f8b64dd60d1837835f10d06520 (patch) | |
tree | 0c33e76f2effa5dcb48a7443ae888c20cbda1e44 /core/packed_data_container.cpp | |
parent | 709964849fdc0c2cb34e5e851df71a66ee28ba1e (diff) |
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
Diffstat (limited to 'core/packed_data_container.cpp')
-rw-r--r-- | core/packed_data_container.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |