diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-15 22:29:55 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-15 22:29:55 +0100 |
| commit | cfb9cae23a50554872ae49b6a2aec8855b294eb9 (patch) | |
| tree | 6c6b45fd0bf11bcef129149b2a46094febb56821 /core/variant/variant_construct.cpp | |
| parent | d0025a1f02124b7425834a436a81a9c70a6f1eb2 (diff) | |
| parent | a43319b6c9c24ed9b88af336c74a4d60e76b6fc3 (diff) | |
| download | redot-engine-cfb9cae23a50554872ae49b6a2aec8855b294eb9.tar.gz | |
Merge pull request #62814 from KoBeWi/strint
Restore numeric from String constructors
Diffstat (limited to 'core/variant/variant_construct.cpp')
| -rw-r--r-- | core/variant/variant_construct.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp index ae9727fe79..624a6f5e06 100644 --- a/core/variant/variant_construct.cpp +++ b/core/variant/variant_construct.cpp @@ -68,11 +68,13 @@ void Variant::_register_variant_constructors() { add_constructor<VariantConstructor<int64_t, int64_t>>(sarray("from")); add_constructor<VariantConstructor<int64_t, double>>(sarray("from")); add_constructor<VariantConstructor<int64_t, bool>>(sarray("from")); + add_constructor<VariantConstructorFromString<int64_t>>(sarray("from")); add_constructor<VariantConstructNoArgs<double>>(sarray()); add_constructor<VariantConstructor<double, double>>(sarray("from")); add_constructor<VariantConstructor<double, int64_t>>(sarray("from")); add_constructor<VariantConstructor<double, bool>>(sarray("from")); + add_constructor<VariantConstructorFromString<double>>(sarray("from")); add_constructor<VariantConstructNoArgs<String>>(sarray()); add_constructor<VariantConstructor<String, String>>(sarray("from")); |
