diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-03 12:25:26 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-03 12:25:26 +0200 |
commit | 03e6fbb010c3546593bd91a0dabc045a9882705a (patch) | |
tree | 3fecc6c86700d555245a71ac2b6421c5296a3132 /modules/gdscript/gdscript_parser.cpp | |
parent | d898f37e35ac4966fc7d54a009d05181fd3b232e (diff) | |
parent | f9b488508ccc294db03d427c15c182864fae74de (diff) | |
download | redot-engine-03e6fbb010c3546593bd91a0dabc045a9882705a.tar.gz |
Merge pull request #85474 from fire/packedvector4array
Add `PackedVector4Array` Variant type
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 9799c6e610..634d4fc867 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -4129,6 +4129,9 @@ static String _get_annotation_error_string(const StringName &p_annotation_name, case Variant::COLOR: types.push_back("PackedColorArray"); break; + case Variant::VECTOR4: + types.push_back("PackedVector4Array"); + break; default: break; } @@ -4827,6 +4830,8 @@ static Variant::Type _variant_type_to_typed_array_element_type(Variant::Type p_t return Variant::VECTOR3; case Variant::PACKED_COLOR_ARRAY: return Variant::COLOR; + case Variant::PACKED_VECTOR4_ARRAY: + return Variant::VECTOR4; default: return Variant::NIL; } |