| 12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using NUnit.Framework;
- namespace SharpGLTF.Validation
- {
- public class TryFixTests
- {
- /*
- [Test]
- public void TryFixAnimationWithInvalidByteStride()
- {
- var path = System.IO.Path.Combine(TestFiles.RootDirectory, "teascroll_clubhouse_-_fountain_prop", "scene.gltf");
- Assert.Throws<LinkException>(() => Schema2.ModelRoot.Load(path));
- var mdl = Schema2.ModelRoot.Load(path, ValidationMode.TryFix);
- var vcontext = new ValidationResult(mdl, ValidationMode.Strict, true);
- mdl.ValidateReferences(vcontext.GetContext());
- mdl.Validate(vcontext.GetContext());
-
- mdl.WriteGLB();
- }*/
- }
- }
|