mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 02:35:06 +08:00
fix: nullref from Setup Outfit on non-humanoid rigs (#746)
Closes: #742
This commit is contained in:
parent
fcc3752bcc
commit
d85bbb257c
@ -386,8 +386,8 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
outfitHips = outfitAnimator.isHuman
|
||||
? outfitAnimator.GetBoneTransform(HumanBodyBones.Hips)?.gameObject
|
||||
: null;
|
||||
|
||||
if (outfitHips.transform.parent == outfitRoot.transform)
|
||||
|
||||
if (outfitHips != null && 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
|
||||
|
Loading…
Reference in New Issue
Block a user