summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_construct.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-09-23 10:24:46 +0200
committerGitHub <noreply@github.com>2022-09-23 10:24:46 +0200
commit006e345695a0448acefd63dcb726a07b63cb1d0d (patch)
tree78e020ad93b2525718e1d65999d853442f2a870c /core/variant/variant_construct.cpp
parent03410efa15b88fc1e55476efb6b47d5079d34c96 (diff)
parent163257d51bd103588da246d39ab5d10afaf15c09 (diff)
downloadredot-engine-006e345695a0448acefd63dcb726a07b63cb1d0d.tar.gz
Merge pull request #65817 from bruvzg/typed_array
Diffstat (limited to 'core/variant/variant_construct.cpp')
-rw-r--r--core/variant/variant_construct.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp
index d048f45737..3b88dc11ca 100644
--- a/core/variant/variant_construct.cpp
+++ b/core/variant/variant_construct.cpp
@@ -200,6 +200,7 @@ void Variant::_register_variant_constructors() {
add_constructor<VariantConstructNoArgs<Array>>(sarray());
add_constructor<VariantConstructor<Array, Array>>(sarray("from"));
+ add_constructor<VariantConstructorTypedArray>(sarray("base", "type", "class_name", "script"));
add_constructor<VariantConstructorToArray<PackedByteArray>>(sarray("from"));
add_constructor<VariantConstructorToArray<PackedInt32Array>>(sarray("from"));
add_constructor<VariantConstructorToArray<PackedInt64Array>>(sarray("from"));