You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add PackedVector4Array Variant type
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
b9e022302a
commit
f9b488508c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user