diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index 7576fd134..304a1ea45 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -739,6 +739,8 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type POOL_VECTOR2I_ARRAY, POOL_VECTOR3_ARRAY, POOL_VECTOR3I_ARRAY, + POOL_VECTOR4_ARRAY, + POOL_VECTOR4I_ARRAY, NIL }; @@ -1307,6 +1309,9 @@ void Variant::zero() { case COLOR: *reinterpret_cast(this->_data._mem) = Color(); break; + case PROJECTION: + *reinterpret_cast(this->_data._mem) = Projection(); + break; default: this->clear(); break;