수동 정제
This commit is contained in:
@@ -262,8 +262,7 @@ public class BoneMatchUtil
|
||||
}
|
||||
}
|
||||
Dictionary<Transform, BoneRootLocalData> dictionary = new Dictionary<Transform, BoneRootLocalData>();
|
||||
foreach (IGrouping<BoneRootLocalData, (BoneRootLocalData, BoneRootLocalData, float, float, float, float, float)> item in from x in list
|
||||
group x by x.body)
|
||||
foreach (IGrouping<BoneRootLocalData, (BoneRootLocalData, BoneRootLocalData, float, float, float, float, float)> item in from x in list group x by x.Item2)
|
||||
{
|
||||
if (item.Key == null)
|
||||
{
|
||||
|
||||
@@ -263,10 +263,10 @@ public class EdenAutoMorpher : MonoBehaviour
|
||||
IEnumerator eamFitting = eamManager.WeightingEnumerator(config);
|
||||
while (eamFitting.MoveNext() && this.doProcess)
|
||||
{
|
||||
ref string title = ref this.processInfo.title;
|
||||
ref string text = ref this.processInfo.text;
|
||||
ref float progress = ref this.processInfo.progress;
|
||||
(title, text, progress) = eamManager.GetProgressInfo();
|
||||
var (title, text, progress) = eamManager.GetProgressInfo();
|
||||
this.processInfo.title = title;
|
||||
this.processInfo.text = text;
|
||||
this.processInfo.progress = progress;
|
||||
yield return eamFitting.Current;
|
||||
}
|
||||
}
|
||||
@@ -280,12 +280,10 @@ public class EdenAutoMorpher : MonoBehaviour
|
||||
public IEnumerator FittingEnumerator(MorpherMode morpherMode)
|
||||
{
|
||||
this.doProcess = true;
|
||||
ref string title = ref this.processInfo.title;
|
||||
ref string text = ref this.processInfo.text;
|
||||
ref float progress = ref this.processInfo.progress;
|
||||
title = "Setup Avatar Pose";
|
||||
text = "Calculating avatar shape and skeletal data.";
|
||||
progress = 0f;
|
||||
this.processInfo.title = "Setup Avatar Pose";
|
||||
this.processInfo.text = "Calculating avatar shape and skeletal data.";
|
||||
this.processInfo.progress = 0f;
|
||||
|
||||
yield return null;
|
||||
this.ProcessInfoDebug(morpherMode, "Fitting");
|
||||
yield return null;
|
||||
@@ -331,10 +329,10 @@ public class EdenAutoMorpher : MonoBehaviour
|
||||
IEnumerator eamFitting = eamManager.WeightingEnumerator(config);
|
||||
while (eamFitting.MoveNext() && this.doProcess)
|
||||
{
|
||||
ref string title = ref this.processInfo.title;
|
||||
ref string text = ref this.processInfo.text;
|
||||
ref float progress = ref this.processInfo.progress;
|
||||
(title, text, progress) = eamManager.GetProgressInfo();
|
||||
var (title, text, progress) = eamManager.GetProgressInfo();
|
||||
this.processInfo.title = title;
|
||||
this.processInfo.text = text;
|
||||
this.processInfo.progress = progress;
|
||||
yield return eamFitting.Current;
|
||||
}
|
||||
}
|
||||
@@ -372,10 +370,10 @@ public class EdenAutoMorpher : MonoBehaviour
|
||||
IEnumerator eamFitting = eamManager.FittingIteration(configData, morpherMode);
|
||||
while (eamFitting.MoveNext() && this.doProcess)
|
||||
{
|
||||
ref string title = ref this.processInfo.title;
|
||||
ref string text = ref this.processInfo.text;
|
||||
ref float progress = ref this.processInfo.progress;
|
||||
(title, text, progress) = eamManager.GetProgressInfo();
|
||||
var (title, text, progress) = eamManager.GetProgressInfo();
|
||||
this.processInfo.title = title;
|
||||
this.processInfo.text = text;
|
||||
this.processInfo.progress = progress;
|
||||
yield return eamFitting.Current;
|
||||
}
|
||||
}
|
||||
@@ -412,10 +410,10 @@ public class EdenAutoMorpher : MonoBehaviour
|
||||
IEnumerator eamFitting = eamManager.FittingIteration(configData, morpherMode);
|
||||
while (eamFitting.MoveNext() && this.doProcess)
|
||||
{
|
||||
ref string title = ref this.processInfo.title;
|
||||
ref string text = ref this.processInfo.text;
|
||||
ref float progress = ref this.processInfo.progress;
|
||||
(title, text, progress) = eamManager.GetProgressInfo();
|
||||
var (title, text, progress) = eamManager.GetProgressInfo();
|
||||
this.processInfo.title = title;
|
||||
this.processInfo.text = text;
|
||||
this.processInfo.progress = progress;
|
||||
yield return eamFitting.Current;
|
||||
}
|
||||
}
|
||||
@@ -458,10 +456,10 @@ public class EdenAutoMorpher : MonoBehaviour
|
||||
IEnumerator eamFitting = eamManager.FittingIteration(configData, morpherMode);
|
||||
while (eamFitting.MoveNext() && this.doProcess)
|
||||
{
|
||||
ref string title = ref this.processInfo.title;
|
||||
ref string text = ref this.processInfo.text;
|
||||
ref float progress = ref this.processInfo.progress;
|
||||
(title, text, progress) = eamManager.GetProgressInfo();
|
||||
var (title, text, progress) = eamManager.GetProgressInfo();
|
||||
this.processInfo.title = title;
|
||||
this.processInfo.text = text;
|
||||
this.processInfo.progress = progress;
|
||||
yield return eamFitting.Current;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user