Skip to content

Commit

Permalink
fix: NRE in EasySetupOutfit (#846)
Browse files Browse the repository at this point in the history
Fixes: #840
  • Loading branch information
bdunderscore committed May 7, 2024
1 parent e1e313f commit 2af603e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Editor/EasySetupOutfit.cs
Expand Up @@ -273,6 +273,8 @@ Transform avatarToOutfit(Transform avBone)
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;

Expand Down

0 comments on commit 2af603e

Please sign in to comment.