From 2d60b9c6e4d6576e114a2efd7177fb71e7f03bf6 Mon Sep 17 00:00:00 2001 From: Alberto Vilches <194074+avilches@users.noreply.github.com> Date: Wed, 14 Dec 2022 16:46:10 +0100 Subject: Added Projection to ConvertTo and CreateFrom --- .../GodotSharp/Core/NativeInterop/VariantUtils.generic.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs index 9a3ed85e66..ebfc713ee4 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs @@ -92,6 +92,9 @@ public partial class VariantUtils if (typeof(T) == typeof(Transform2D)) return CreateFromTransform2D(UnsafeAs(from)); + if (typeof(T) == typeof(Projection)) + return CreateFromProjection(UnsafeAs(from)); + if (typeof(T) == typeof(Vector3)) return CreateFromVector3(UnsafeAs(from)); @@ -293,6 +296,9 @@ public partial class VariantUtils if (typeof(T) == typeof(Transform3D)) return UnsafeAsT(ConvertToTransform3D(variant)); + if (typeof(T) == typeof(Projection)) + return UnsafeAsT(ConvertToProjection(variant)); + if (typeof(T) == typeof(Vector4)) return UnsafeAsT(ConvertToVector4(variant)); -- cgit v1.2.3