summaryrefslogtreecommitdiffstats
path: root/core/object/object.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-04-25 00:21:32 +0200
committerJuan Linietsky <reduzio@gmail.com>2023-04-30 20:01:26 +0200
commit1c93606e470f0cad5f14af104ccb89a95a89931c (patch)
treefad6e8c9e15c3a3a211d4b2fff98a4e81a5ae2ca /core/object/object.cpp
parent14c582bca81046fdde35e16088ddfd5df0136d56 (diff)
downloadredot-engine-1c93606e470f0cad5f14af104ccb89a95a89931c.tar.gz
Add ValidatedCall to MethodBind
* This should optimize GDScript function calling _enormously_. * It also should simplify the GDScript VM considerably. NOTE: GDExtension calling performance has most likely been affected until going via ptrcall is fixed.
Diffstat (limited to 'core/object/object.cpp')
-rw-r--r--core/object/object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 39cae7c5bd..1775937b38 100644
--- a/core/object/object.cpp
+++ b/core/object/object.cpp
@@ -935,8 +935,8 @@ TypedArray<Dictionary> Object::_get_method_list_bind() const {
return ret;
}
-Vector<StringName> Object::_get_meta_list_bind() const {
- Vector<StringName> _metaret;
+TypedArray<StringName> Object::_get_meta_list_bind() const {
+ TypedArray<StringName> _metaret;
for (const KeyValue<StringName, Variant> &K : metadata) {
_metaret.push_back(K.key);