This commit is contained in:
CroakFang
2023-02-26 15:32:42 +08:00
parent 02a9e09620
commit 1e8fb2076c
6 changed files with 34 additions and 9 deletions
@@ -589,14 +589,14 @@ namespace Gallop
{
if (data.IsOnlyBaseReplace)
{
if (morphs.Find(m => m.weight > 0) == null)
var morph = morphs.Find(m => m.weight > 0);
if (morph == null)
{
GetMorphByType(morphs, data.BaseReplaceFaceType).weight = 1;
Debug.LogError(morph.tag);
}
else
{
GetMorphByType(morphs, data.BaseReplaceFaceType).weight = 0;
}
Debug.LogError(morph.tag);
}
foreach (var arr in data.DataArray)