bug fix
This commit is contained in:
@@ -277,12 +277,11 @@ public class UmaViewerBuilder : MonoBehaviour
|
|||||||
CurrentUMAContainer.FaceDrivenKeyTarget.Container = CurrentUMAContainer;
|
CurrentUMAContainer.FaceDrivenKeyTarget.Container = CurrentUMAContainer;
|
||||||
FaceDriven.Initialize(firsehead.GetComponentsInChildren<Transform>().ToList());
|
FaceDriven.Initialize(firsehead.GetComponentsInChildren<Transform>().ToList());
|
||||||
|
|
||||||
CurrentUMAContainer.FaceEmotionKeyTarget = new FaceEmotionKeyTarget()
|
var emotionDriven = ScriptableObject.CreateInstance<FaceEmotionKeyTarget>();
|
||||||
{
|
CurrentUMAContainer.FaceEmotionKeyTarget = emotionDriven;
|
||||||
FaceDrivenKeyTarget = FaceDriven,
|
emotionDriven.FaceDrivenKeyTarget = FaceDriven;
|
||||||
FaceEmotionKey = UmaDatabaseController.Instance.FaceTypeData.ToList()
|
emotionDriven.FaceEmotionKey = UmaDatabaseController.Instance.FaceTypeData.ToList();
|
||||||
};
|
emotionDriven.Initialize();
|
||||||
CurrentUMAContainer.FaceEmotionKeyTarget.Initialize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CurrentUMAContainer.MergeModel();
|
CurrentUMAContainer.MergeModel();
|
||||||
|
|||||||
@@ -81,9 +81,7 @@ public class FaceEmotionKeyTarget : ScriptableObject
|
|||||||
key.morph.weight += key.weight / 100 * emotion.Weight;
|
key.morph.weight += key.weight / 100 * emotion.Weight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FaceDrivenKeyTarget.ChangeMorph();
|
FaceDrivenKeyTarget.ChangeMorph();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user