mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-10 07:44:57 +08:00
fix: broken humanoid rigs can break assumptions made in EasySetupOutfit (#737)
Closes: #735
This commit is contained in:
parent
c67d28ca1b
commit
6cc687d1fd
@ -386,6 +386,14 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
outfitHips = outfitAnimator.isHuman
|
||||
? outfitAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject
|
||||
: null;
|
||||
|
||||
if (outfitHips.transform.parent == outfitRoot.transform)
|
||||
{
|
||||
// Sometimes broken rigs can have the hips as a direct child of the root, instead of having
|
||||
// an intermediate Armature object. We do not currently support this kind of rig, and so we'll
|
||||
// assume the outfit's humanoid rig is broken and move on to heuristic matching.
|
||||
outfitHips = null;
|
||||
}
|
||||
}
|
||||
|
||||
var hipsCandidates = new List<string>();
|
||||
|
Loading…
Reference in New Issue
Block a user