浏览代码

Merge pull request #69498 from raulsntos/dotnet/float64

C#: Always convert float Variants to System.Double
Ignacio Roldán Etcheverry 2 年之前
父节点
当前提交
6f1d4fd887
共有 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(),