C#: Always convert float Variants to System.Double

Godot floats are always 64-bit.
The real_t feature only affects vectors, not scalars.
This commit is contained in:
Raul Santos 2022-12-02 17:04:11 +01:00
parent f3c68d6c83
commit fbd41a6eda
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4

View File

@ -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(),