From c80ee8d7bf3dacdf5b4fbf5a3551438c230f5d1c Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 15 Aug 2023 10:23:41 +0200 Subject: [PATCH] Added missing Variant conversion and zero cases. --- core/variant/variant.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;