fix: NRE in EasySetupOutfit (#846)

Fixes: #840
This commit is contained in:
bd_ 2024-05-07 10:43:53 +09:00 committed by GitHub
parent e1e313f10b
commit 2af603e365
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -273,6 +273,8 @@ namespace nadena.dev.modular_avatar.core.editor
var outfitPath = string.Join("/", parts.Select(p => mergeArmature.prefix + p + mergeArmature.suffix));
var candidate = outfitArmature.transform.Find(outfitPath);
if (candidate == null) return null;
var merger = candidate.GetComponentInParent<ModularAvatarMergeArmature>();
if (merger != mergeArmature) return null;