Jelajahi Sumber

Fix reflection verification

Matt Cooley 6 bulan lalu
induk
melakukan
7d43b0e629
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/SharpGLTF.Core/Reflection/FieldInfo.cs

+ 1 - 1
src/SharpGLTF.Core/Reflection/FieldInfo.cs

@@ -28,7 +28,7 @@ namespace SharpGLTF.Reflection
             if (path.Contains("/extras/", StringComparison.Ordinal)) return;
 
             var backingField = From(reflectionObject, path);
-            if (!backingField.IsEmpty) throw new ArgumentException($"{path} not found in the current model, add objects before animations, or disable verification.", nameof(path));
+            if (backingField.IsEmpty) throw new ArgumentException($"{path} not found in the current model, add objects before animations, or disable verification.", nameof(path));
         }
 
         #endregion