change class name

This commit is contained in:
CroakFang
2022-11-22 23:06:19 +08:00
parent b180292eb6
commit 9e7b10c1a5
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ public class UmaViewerUI : MonoBehaviour
{
foreach (FacialMorph morph in targetMorph)
{
if(morph is FacialExtraMorph extraMorph)
if(morph is FacialOtherMorph extraMorph)
{
foreach(var prop in extraMorph.BindProperties)
{
@@ -27,7 +27,7 @@ namespace Gallop
public List<FacialMorph> EyeBrowMorphs = new List<FacialMorph>();
public List<FacialMorph> EyeMorphs = new List<FacialMorph>();
public List<FacialMorph> MouthMorphs = new List<FacialMorph>();
public List<FacialExtraMorph> OtherMorphs = new List<FacialExtraMorph>();
public List<FacialOtherMorph> OtherMorphs = new List<FacialOtherMorph>();
public Transform DrivenKeyLocator;
public Transform EyeballCtrl_L_Locator, EyeballCtrl_R_Locator, EyeballCtrl_All_Locator;
@@ -175,7 +175,7 @@ namespace Gallop
{
if (Container.CheekTex_0)
{
var CheekMorph = new FacialExtraMorph
var CheekMorph = new FacialOtherMorph
{
name = "Cheek_Ctrl",
locator = DrivenKeyLocator.Find("Cheek_Ctrl"),
@@ -224,7 +224,7 @@ namespace Gallop
Container.FaceMaterial = Container.Head.transform.Find("M_Face").GetComponent<SkinnedMeshRenderer>().material;
if (Container.FaceMaterial)
{
FacialExtraMorph FaceShadowMorph = new FacialExtraMorph()
FacialOtherMorph FaceShadowMorph = new FacialOtherMorph()
{
name = "Shade_Ctrl",
locator = DrivenKeyLocator.Find("Shade_Ctrl")
@@ -240,7 +240,7 @@ namespace Gallop
OtherMorphs.Add(FaceShadowMorph);
}
FacialExtraMorph FaceMangaMorph = new FacialExtraMorph()
FacialOtherMorph FaceMangaMorph = new FacialOtherMorph()
{
name = "Manga_Ctrl",
locator = DrivenKeyLocator.Find("Manga_Ctrl")
@@ -266,7 +266,7 @@ namespace Gallop
foreach(var tear in Container.TearControllers)
{
var index = Container.TearControllers.IndexOf(tear);
FacialExtraMorph FaceTearMorph = new FacialExtraMorph()
FacialOtherMorph FaceTearMorph = new FacialOtherMorph()
{
name = $"Tear{index}_Ctrl",
locator = DrivenKeyLocator.Find($"Tear{index}_Ctrl")
@@ -385,7 +385,7 @@ namespace Gallop
}
}
private void ProcessExtraMorph(FacialExtraMorph morph)
private void ProcessExtraMorph(FacialOtherMorph morph)
{
foreach (var property in morph.BindProperties)
{
@@ -19,7 +19,7 @@ namespace Gallop
}
[System.Serializable]
public class FacialExtraMorph : FacialMorph
public class FacialOtherMorph : FacialMorph
{
public GameObject BindGameObject;
public List<BindProperty> BindProperties = new List<BindProperty>();