mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-28 05:44:48 -05:00
vrm-0.x の fastspringbone の処理は、 vrm-1.0 版と同じものを使う
This commit is contained in:
@@ -4,6 +4,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UniGLTF;
|
||||
using UniGLTF.SpringBoneJobs;
|
||||
using UniHumanoid;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -387,7 +388,14 @@ namespace VRM.SimpleViewer
|
||||
|
||||
if (m_useFastSpringBone.isOn)
|
||||
{
|
||||
var _ = FastSpringBoneReplacer.ReplaceAsync(instance.Root);
|
||||
// job用バッファ作成
|
||||
var buffer = SpringBoneJobs.FastSpringBoneReplacer.MakeBuffer(instance.Root);
|
||||
|
||||
// 登録
|
||||
SpringBoneJobs.FastSpringBoneService.Instance.BufferCombiner.Register(buffer);
|
||||
|
||||
// 削除登録
|
||||
instance.Root.AddComponent<FastSpringBoneDisposer>().Add(buffer);
|
||||
}
|
||||
|
||||
instance.EnableUpdateWhenOffscreen();
|
||||
|
||||
Reference in New Issue
Block a user