Преглед на файлове

Merge pull request #277 from mcooley/patch-1

Fix reflection verification
Vicente Penades преди 6 месеца
родител
ревизия
a98b4768e8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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