Browse Source

fixed missing token

vpenades 2 years ago
parent
commit
f35290cee8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build/SharpGLTF.CodeGen/SchemaProcessing.cs

+ 2 - 2
build/SharpGLTF.CodeGen/SchemaProcessing.cs

@@ -62,12 +62,12 @@ namespace SharpGLTF
 
 
             public override Task<IJsonReference> ResolveFileReferenceAsync(string filePath, System.Threading.CancellationToken cancellationToken)
             public override Task<IJsonReference> ResolveFileReferenceAsync(string filePath, System.Threading.CancellationToken cancellationToken)
             {
             {
-                if (System.IO.File.Exists(filePath)) return base.ResolveFileReferenceAsync(filePath);
+                if (System.IO.File.Exists(filePath)) return base.ResolveFileReferenceAsync(filePath, cancellationToken);
 
 
                 filePath = System.IO.Path.GetFileName(filePath);
                 filePath = System.IO.Path.GetFileName(filePath);
                 filePath = System.IO.Path.Combine(Constants.MainSchemaDir, filePath);
                 filePath = System.IO.Path.Combine(Constants.MainSchemaDir, filePath);
 
 
-                if (System.IO.File.Exists(filePath)) return base.ResolveFileReferenceAsync(filePath);
+                if (System.IO.File.Exists(filePath)) return base.ResolveFileReferenceAsync(filePath, cancellationToken);
 
 
                 throw new System.IO.FileNotFoundException(filePath);
                 throw new System.IO.FileNotFoundException(filePath);
             }
             }