bug fix
This commit is contained in:
@@ -387,18 +387,27 @@ namespace Gallop.Live
|
||||
|
||||
var characterStandPos = _liveTimelineControl.transform.Find("CharacterStandPos");
|
||||
int counter = 0;
|
||||
foreach (Transform trans in characterStandPos.GetComponentsInChildren<Transform>())
|
||||
var standPos = characterStandPos.GetComponentsInChildren<Transform>();
|
||||
var count = _liveTimelineControl.data.characterSettings.useHighPolygonModel.Length;
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
if (trans == characterStandPos)
|
||||
if (i < characterStandPos.childCount)
|
||||
{
|
||||
continue;
|
||||
var newObj = Instantiate(standPos[i + 1], transform);
|
||||
newObj.gameObject.name = string.Format("CharacterObject{0}", counter);
|
||||
charaObjs.Add(newObj.transform);
|
||||
counter++;
|
||||
}
|
||||
else
|
||||
{
|
||||
var newObj = Instantiate(standPos[i % characterStandPos.childCount + 1], transform);
|
||||
newObj.gameObject.name = string.Format("CharacterObject{0}", counter);
|
||||
charaObjs.Add(newObj.transform);
|
||||
counter++;
|
||||
}
|
||||
var newObj = Instantiate(trans, transform);
|
||||
newObj.gameObject.name = string.Format("CharacterObject{0}", counter);
|
||||
charaObjs.Add(newObj.transform);
|
||||
counter++;
|
||||
};
|
||||
|
||||
|
||||
//Get live parts info
|
||||
UmaDatabaseEntry partAsset = UmaViewerMain.Instance.AbList[string.Format(LIVE_PART_PATH, live.MusicId)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user