Skip to content

Commit

Permalink
Merge pull request #2460 from ousttrue/version/v0_127_1
Browse files Browse the repository at this point in the history
UniVRM-0.127.1
  • Loading branch information
ousttrue authored Oct 15, 2024
2 parents 4055adc + 573ad56 commit 0214d88
Show file tree
Hide file tree
Showing 12 changed files with 4,413 additions and 412 deletions.
4 changes: 2 additions & 2 deletions Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public static partial class PackageVersion
{
public const int MAJOR = 0;
public const int MINOR = 127;
public const int PATCH = 0;
public const string VERSION = "0.127.0";
public const int PATCH = 1;
public const string VERSION = "0.127.1";
}
}
4 changes: 2 additions & 2 deletions Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public static partial class UniGLTFVersion
{
public const int MAJOR = 2;
public const int MINOR = 63;
public const int PATCH = 0;
public const string VERSION = "2.63.0";
public const int PATCH = 1;
public const string VERSION = "2.63.1";
}
}
2 changes: 1 addition & 1 deletion Assets/UniGLTF/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.vrmc.gltf",
"version": "0.127.0",
"version": "0.127.1",
"displayName": "UniGLTF",
"description": "GLTF importer and exporter",
"unity": "2021.3",
Expand Down
28 changes: 18 additions & 10 deletions Assets/VRM/Samples~/SimpleViewer/Loaded.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using UniGLTF;
using UniGLTF.SpringBoneJobs.Blittables;
using UniHumanoid;
using UnityEngine;

Expand Down Expand Up @@ -40,9 +41,12 @@ public bool EnableLipSyncValue
}
}

public Loaded(RuntimeGltfInstance instance, HumanPoseTransfer src, Transform lookAtTarget)
IVrm0XSpringBoneRuntime _springbone;

public Loaded(RuntimeGltfInstance instance, HumanPoseTransfer src, Transform lookAtTarget, IVrm0XSpringBoneRuntime springbone)
{
_instance = instance;
_springbone = springbone;

var lookAt = instance.GetComponent<VRMLookAtHead>();
if (lookAt != null)
Expand Down Expand Up @@ -104,15 +108,19 @@ public void EnableTPose(HumanPoseClip pose)
}
}

public void ResetSpring()
public void ResetSpringbone()
{
if (_pose != null)
{
foreach (var spring in _pose.GetComponentsInChildren<VRMSpringBone>())
{
spring.Setup();
}
}
_springbone.RestoreInitialTransform();
}

public void ReconstructSpringbone()
{
_springbone.ReconstructSpringBone();
}

public void SetSpringboneModelLevel(BlittableModelLevel modelSettings)
{
_springbone.SetModelLevel(_instance.transform, modelSettings);
}
}
}
}
Loading

0 comments on commit 0214d88

Please sign in to comment.