mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 06:19:47 -05:00
parent
4491eccd55
commit
e725329648
|
|
@ -48,7 +48,7 @@ namespace UniGLTF
|
|||
{
|
||||
validator.SetRoot(root, new GltfExportSettings(), new DefualtBlendShapeExportFilter());
|
||||
var vs = validator.Validate(root);
|
||||
Assert.False(vs.All(x => x.CanExport));
|
||||
Assert.True(vs.All(x => x.CanExport));
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
@ -68,7 +68,7 @@ namespace UniGLTF
|
|||
{
|
||||
validator.SetRoot(root, new GltfExportSettings(), new DefualtBlendShapeExportFilter());
|
||||
var vs = validator.Validate(root);
|
||||
Assert.False(vs.All(x => x.CanExport));
|
||||
Assert.True(vs.All(x => x.CanExport));
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ namespace UniGLTF
|
|||
};
|
||||
|
||||
var json = model.ToJson();
|
||||
Assert.AreEqual(@"{""name"":""mesh"",""primitives"":[{""mode"":0,""indices"":0,""attributes"":{""POSITION"":1},""material"":0}]}", json);
|
||||
Assert.AreEqual(@"{""name"":""mesh"",""primitives"":[{""mode"":0,""indices"":0,""attributes"":{""POSITION"":1}}]}", json);
|
||||
Debug.Log(json);
|
||||
}
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ namespace UniGLTF
|
|||
};
|
||||
|
||||
var json = model.ToJson();
|
||||
Assert.AreEqual(@"{""mode"":0,""indices"":0,""attributes"":{""POSITION"":1},""material"":0,""extras"":{""targetNames"":[""aaa""]}}", json);
|
||||
Assert.AreEqual(@"{""mode"":0,""indices"":0,""attributes"":{""POSITION"":1},""extras"":{""targetNames"":[""aaa""]}}", json);
|
||||
Debug.Log(json);
|
||||
}
|
||||
|
||||
|
|
@ -378,8 +378,6 @@ namespace UniGLTF
|
|||
primitive.AddValue(Utf8String.From("0").Bytes, ValueNodeType.Integer);
|
||||
primitive.AddKey(Utf8String.From("indices"));
|
||||
primitive.AddValue(Utf8String.From("0").Bytes, ValueNodeType.Integer);
|
||||
primitive.AddKey(Utf8String.From("material"));
|
||||
primitive.AddValue(Utf8String.From("0").Bytes, ValueNodeType.Integer);
|
||||
primitive.AddKey(Utf8String.From("attributes"));
|
||||
primitive.AddValue(default(ArraySegment<byte>), ValueNodeType.Object);
|
||||
primitive["attributes"].AddKey(Utf8String.From("POSITION"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user