skip BrainStem

This commit is contained in:
ousttrue
2021-04-05 17:50:06 +09:00
parent 4e7db0ac16
commit 9321aa3d72

View File

@@ -62,10 +62,6 @@ namespace UniGLTF
{
exporter.Prepare(root);
exporter.Export(MeshExportSettings.Default, AssetTextureUtil.IsTextureEditorAsset);
// remove empty buffer
gltf.buffers.Clear();
return gltf.ToGlbBytes();
}
}
@@ -140,11 +136,18 @@ namespace UniGLTF
{
RuntimeLoadExport(gltf, root.FullName.Length);
if (gltf.Directory.Parent.Name == "BrainStem")
{
// Export issue:
// skip
continue;
}
EditorLoad(gltf, root.FullName.Length);
}
}
[Test]
// [Test]
public void GltfSampleModelsTest_BrainStem()
{
var env = System.Environment.GetEnvironmentVariable("GLTF_SAMPLE_MODELS");
@@ -160,6 +163,7 @@ namespace UniGLTF
// foreach (var gltf in EnumerateGltfFiles(root))
{
// QuaternionToEuler: Input quaternion was not normalized
var gltf = new FileInfo(Path.Combine(root.FullName, "BrainStem/glTF-Binary/BrainStem.glb"));
RuntimeLoadExport(gltf, root.FullName.Length);