Przeglądaj źródła

Merge pull request #277 from mcooley/patch-1

Fix reflection verification
Vicente Penades 6 miesięcy temu
rodzic
commit
a98b4768e8
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
             if (path.Contains("/extras/", StringComparison.Ordinal)) return;
 
 
             var backingField = From(reflectionObject, path);
             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
         #endregion