Fix missing type info for PackedVector4Array

pull/1546/head
Aaron Franke 2024-08-10 21:16:43 -07:00
parent 11773e52b0
commit 92e6ea7303
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
4 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,7 @@ MAKE_PTRARG(PackedFloat64Array);
MAKE_PTRARG(PackedStringArray); MAKE_PTRARG(PackedStringArray);
MAKE_PTRARG(PackedVector2Array); MAKE_PTRARG(PackedVector2Array);
MAKE_PTRARG(PackedVector3Array); MAKE_PTRARG(PackedVector3Array);
MAKE_PTRARG(PackedVector4Array);
MAKE_PTRARG(PackedColorArray); MAKE_PTRARG(PackedColorArray);
MAKE_PTRARG_BY_REFERENCE(Variant); MAKE_PTRARG_BY_REFERENCE(Variant);

View File

@ -185,6 +185,7 @@ MAKE_TYPE_INFO(PackedFloat64Array, GDEXTENSION_VARIANT_TYPE_PACKED_FLOAT64_ARRAY
MAKE_TYPE_INFO(PackedStringArray, GDEXTENSION_VARIANT_TYPE_PACKED_STRING_ARRAY) MAKE_TYPE_INFO(PackedStringArray, GDEXTENSION_VARIANT_TYPE_PACKED_STRING_ARRAY)
MAKE_TYPE_INFO(PackedVector2Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR2_ARRAY) MAKE_TYPE_INFO(PackedVector2Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR2_ARRAY)
MAKE_TYPE_INFO(PackedVector3Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR3_ARRAY) MAKE_TYPE_INFO(PackedVector3Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR3_ARRAY)
MAKE_TYPE_INFO(PackedVector4Array, GDEXTENSION_VARIANT_TYPE_PACKED_VECTOR4_ARRAY)
MAKE_TYPE_INFO(PackedColorArray, GDEXTENSION_VARIANT_TYPE_PACKED_COLOR_ARRAY) MAKE_TYPE_INFO(PackedColorArray, GDEXTENSION_VARIANT_TYPE_PACKED_COLOR_ARRAY)
// For variant. // For variant.

View File

@ -130,6 +130,7 @@ MAKE_TYPED_ARRAY(PackedFloat64Array, Variant::PACKED_FLOAT64_ARRAY)
MAKE_TYPED_ARRAY(PackedStringArray, Variant::PACKED_STRING_ARRAY) MAKE_TYPED_ARRAY(PackedStringArray, Variant::PACKED_STRING_ARRAY)
MAKE_TYPED_ARRAY(PackedVector2Array, Variant::PACKED_VECTOR2_ARRAY) MAKE_TYPED_ARRAY(PackedVector2Array, Variant::PACKED_VECTOR2_ARRAY)
MAKE_TYPED_ARRAY(PackedVector3Array, Variant::PACKED_VECTOR3_ARRAY) MAKE_TYPED_ARRAY(PackedVector3Array, Variant::PACKED_VECTOR3_ARRAY)
MAKE_TYPED_ARRAY(PackedVector4Array, Variant::PACKED_VECTOR4_ARRAY)
MAKE_TYPED_ARRAY(PackedColorArray, Variant::PACKED_COLOR_ARRAY) MAKE_TYPED_ARRAY(PackedColorArray, Variant::PACKED_COLOR_ARRAY)
// If the IPAddress struct is added to godot-cpp, the following could also be added: // If the IPAddress struct is added to godot-cpp, the following could also be added:
//MAKE_TYPED_ARRAY(IPAddress, Variant::STRING) //MAKE_TYPED_ARRAY(IPAddress, Variant::STRING)

View File

@ -66,6 +66,7 @@ void Variant::init_bindings() {
PackedStringArray::init_bindings(); PackedStringArray::init_bindings();
PackedVector2Array::init_bindings(); PackedVector2Array::init_bindings();
PackedVector3Array::init_bindings(); PackedVector3Array::init_bindings();
PackedVector4Array::init_bindings();
PackedColorArray::init_bindings(); PackedColorArray::init_bindings();
} }