Added morph clear button

removed redundant property
This commit is contained in:
katboi01
2022-11-01 19:00:40 +01:00
parent ae640a1b4b
commit 7c07615b8a
8 changed files with 347 additions and 72 deletions
@@ -142,17 +142,17 @@ namespace Gallop
{
foreach (FacialMorph morph in EyeBrowMorphs)
{
morph._weight = 0;
morph.weight = 0;
}
foreach (FacialMorph morph in EyeMorphs)
{
morph._weight = 0;
morph.weight = 0;
}
foreach (FacialMorph morph in MouthMorphs)
{
morph._weight = 0;
morph.weight = 0;
}
}
@@ -162,9 +162,9 @@ namespace Gallop
{
if (trs.transform)
{
trs.transform.localScale += trs._scale * morph.Weight;
trs.transform.localPosition += trs._position * morph.Weight;
RotationRecorder[trs.transform] += trs._rotation * morph.Weight;
trs.transform.localScale += trs._scale * morph.weight;
trs.transform.localPosition += trs._position * morph.weight;
RotationRecorder[trs.transform] += trs._rotation * morph.weight;
};
}
}
@@ -202,7 +202,7 @@ namespace Gallop
public void ChangeMorphWeight(FacialMorph morph,float val)
{
morph.Weight = val;
morph.weight = val;
ChangeMorph();
}