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