Browse Source

Fix reflection verification

Matt Cooley 6 months ago
parent
commit
7d43b0e629
1 changed files with 1 additions and 1 deletions
  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