فهرست منبع

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 سال پیش
والد
کامیت
fbd41a6eda
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  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(),