bug fix
This commit is contained in:
@@ -227,12 +227,9 @@ public class UmaViewerBuilder : MonoBehaviour
|
||||
{
|
||||
var firsehead = CurrentContainer.Heads[0];
|
||||
var FaceDriven = firsehead.GetComponent<AssetHolder>()._assetTable.list.Find(a => { return a.Key == "facial_target"; }).Value as FaceDrivenKeyTarget;
|
||||
var newFaceDriven = firsehead.AddComponent<FaceDrivenKeyTarget>();
|
||||
newFaceDriven.callBack = UmaViewerUI.Instance;
|
||||
newFaceDriven._eyebrowTarget = FaceDriven._eyebrowTarget;
|
||||
newFaceDriven._eyeTarget = FaceDriven._eyeTarget;
|
||||
newFaceDriven._mouthTarget = FaceDriven._mouthTarget;
|
||||
CurrentContainer.FaceDrivenKeyTargets = newFaceDriven;
|
||||
CurrentContainer.FaceDrivenKeyTargets = FaceDriven;
|
||||
FaceDriven.callBack = UmaViewerUI.Instance;
|
||||
FaceDriven.Initialize(firsehead.GetComponentsInChildren<Transform>().ToList());
|
||||
}
|
||||
|
||||
LoadAsset(UmaViewerMain.Instance.AbList.FirstOrDefault(a => a.Name.EndsWith($"anm_eve_chr{id}_00_idle01_loop")));
|
||||
|
||||
@@ -5,13 +5,13 @@ using UnityEngine;
|
||||
|
||||
namespace Gallop
|
||||
{
|
||||
public class FaceDrivenKeyTarget : MonoBehaviour
|
||||
public class FaceDrivenKeyTarget : ScriptableObject
|
||||
{
|
||||
public List<EyeTarget> _eyeTarget;
|
||||
public List<EyebrowTarget> _eyebrowTarget;
|
||||
public List<MouthTarget> _mouthTarget;
|
||||
|
||||
public List<Transform> Objs = new List<Transform>();
|
||||
public List<Transform> Objs;
|
||||
private FacialMorph BaseLEyeBrowMorph, BaseREyeBrowMorph;
|
||||
private FacialMorph BaseLEyeMorph, BaseREyeMorph;
|
||||
private FacialMorph BaseMouthMorph;
|
||||
@@ -21,10 +21,9 @@ namespace Gallop
|
||||
public List<FacialMorph> MouthMorphs = new List<FacialMorph>();
|
||||
|
||||
public FaceLoadCallBack callBack;
|
||||
private void Start()
|
||||
public void Initialize(List<Transform> objs)
|
||||
{
|
||||
|
||||
Objs.AddRange(GetComponentsInChildren<Transform>());
|
||||
Objs = objs;
|
||||
|
||||
for (int i = 0; i < _eyebrowTarget.Count; i++)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Gallop.Live.Cutt
|
||||
{
|
||||
public class LiveTimelineWorkSheet:MonoBehaviour
|
||||
public class LiveTimelineWorkSheet:ScriptableObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -6244,7 +6244,7 @@ Texture2D:
|
||||
m_MipsStripped: 0
|
||||
m_TextureFormat: 1
|
||||
m_MipCount: 1
|
||||
m_IsReadable: 0
|
||||
m_IsReadable: 1
|
||||
m_IsPreProcessed: 0
|
||||
m_IgnoreMasterTextureLimit: 0
|
||||
m_StreamingMipmaps: 0
|
||||
|
||||
Reference in New Issue
Block a user