Browse Source

Merge pull request #272 from MeltyPlayer/isFinite

Fixed minor bug where isFinite would not be used if the version were NET core.
Vicente Penades 7 months ago
parent
commit
c4bfcfc0cd
1 changed files with 1 additions and 1 deletions
  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)
         {
-            #if NETSTANDARD2_1_OR_GREATER
+            #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
             return float.IsFinite(value);
             #else
             return !(float.IsNaN(value) || float.IsInfinity(value));