Browse Source

C#: Always convert float Variants to System.Double

Godot floats are always 64-bit.
The real_t feature only affects vectors, not scalars.
Raul Santos 2 năm trước cách đây
mục cha
commit
fbd41a6eda
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs

+ 0 - 4
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(),