mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 13:29:01 +08:00
armatureの子を1と仮定せずに全探査するように修正
https://github.com/bdunderscore/modular-avatar/issues/101
This commit is contained in:
parent
2d9e63c83a
commit
f16f13297a
@ -65,11 +65,11 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
// Heuristic search - usually there'll be root -> Armature -> (single child) Hips
|
// Heuristic search - usually there'll be root -> Armature -> (single child) Hips
|
||||||
foreach (Transform child in outfitRoot.transform)
|
foreach (Transform child in outfitRoot.transform)
|
||||||
{
|
{
|
||||||
if (child.childCount == 1)
|
foreach (Transform tempHip in child)
|
||||||
{
|
{
|
||||||
if (child.GetChild(0).name.Contains(avatarHips.name))
|
if (tempHip.name.Contains(avatarHips.name))
|
||||||
{
|
{
|
||||||
outfitHips = child.GetChild(0).gameObject;
|
outfitHips = tempHip.gameObject;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user