Explorar o código

Merge pull request #272 from MeltyPlayer/isFinite

Fixed minor bug where isFinite would not be used if the version were NET core.
Vicente Penades hai 7 meses
pai
achega
c4bfcfc0cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Shared/_Extensions.cs

+ 1 - 1
src/Shared/_Extensions.cs

@@ -46,7 +46,7 @@ namespace SharpGLTF
 
 
         internal static bool _IsFinite(this float value)
         internal static bool _IsFinite(this float value)
         {
         {
-            #if NETSTANDARD2_1_OR_GREATER
+            #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
             return float.IsFinite(value);
             return float.IsFinite(value);
             #else
             #else
             return !(float.IsNaN(value) || float.IsInfinity(value));
             return !(float.IsNaN(value) || float.IsInfinity(value));