mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: nullref from Setup Outfit on non-humanoid rigs (#746)
Closes: #742
This commit is contained in:
parent
fcc3752bcc
commit
d85bbb257c
@ -387,7 +387,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
? 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