mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-14 23:10:46 -05:00
skip BrainStem
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user