mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-01 07:23:15 -05:00
fix SpringBoneAdapter.ToGltf
This commit is contained in:
parent
f6babc46e0
commit
43c46fbf18
|
|
@ -93,6 +93,7 @@ namespace UniVRM10
|
|||
{
|
||||
spring.Joints.Add(new SpringBoneJoint
|
||||
{
|
||||
Node = nodes.IndexOfThrow(y.Node),
|
||||
HitRadius = y.HitRadius,
|
||||
DragForce = y.DragForce,
|
||||
GravityDir = y.GravityDir.ToFloat3(),
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace UniVRM10.Test
|
|||
{
|
||||
public class MaterialTests
|
||||
{
|
||||
const string _vrmPath = "Tests/Models/Alicia_vrm-1.00/AliciaSolid_vrm-1.00.vrm";
|
||||
const string _vrmPath = "Tests/Models/Alicia_vrm-0.51/AliciaSolid_vrm-0.51.vrm";
|
||||
|
||||
string[] _mtooSrgbTextureProperties = {
|
||||
VrmLib.MToon.Utils.PropMainTex,
|
||||
|
|
@ -33,6 +33,10 @@ namespace UniVRM10.Test
|
|||
{
|
||||
var fi = new FileInfo(_vrmPath);
|
||||
var bytes = File.ReadAllBytes(fi.FullName);
|
||||
|
||||
// migrate to 1.0
|
||||
bytes = Migration.Migrate(bytes);
|
||||
|
||||
return ToUnity(bytes);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user