Browse Source

tests: fixed file attachment

vpenades 5 months ago
parent
commit
e0c932c584
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/SharpGLTF.ThirdParty.Tests/InconsistentMorphTargets.cs

+ 2 - 2
tests/SharpGLTF.ThirdParty.Tests/InconsistentMorphTargets.cs

@@ -76,11 +76,11 @@ namespace SharpGLTF.ThirdParty
             // save the output glb for test
             // save the output glb for test
             if (use_temp_fix)
             if (use_temp_fix)
             {
             {
-                model.SaveGLB("../../../../Assets/InconsistentMorphTargets_trick_fixed.glb");
+                AttachmentInfo.From("InconsistentMorphTargets_trick_fixed.glb").WriteObject(f=>model.SaveGLB(f));                
             }
             }
             else
             else
             {
             {
-                model.SaveGLB("../../../../Assets/InconsistentMorphTargets_unfixed.glb");
+                AttachmentInfo.From("InconsistentMorphTargets_unfixed.glb").WriteObject(f => model.SaveGLB(f));                
             }
             }
 
 
             Assert.That(model.LogicalMeshes.Count, Is.EqualTo(1), "The model should have only one mesh");
             Assert.That(model.LogicalMeshes.Count, Is.EqualTo(1), "The model should have only one mesh");