From fbd41a6eda3b5e0c629ec1b1a43162aa4c2bcc98 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Fri, 2 Dec 2022 17:04:11 +0100 Subject: C#: Always convert float Variants to System.Double Godot floats are always 64-bit. The real_t feature only affects vectors, not scalars. --- modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'modules') diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs index 32d9598554..49a363cef2 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs @@ -114,11 +114,7 @@ public partial struct Variant : IDisposable { Type.Bool => AsBool(), Type.Int => AsInt64(), -#if REAL_T_IS_DOUBLE Type.Float => AsDouble(), -#else - Type.Float => AsSingle(), -#endif Type.String => AsString(), Type.Vector2 => AsVector2(), Type.Vector2i => AsVector2i(), -- cgit v1.2.3