Skip to content

Commit

Permalink
Don't create blend shape section if no mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
enitimeago committed Feb 4, 2024
1 parent 7d167e0 commit 8117ab2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ internal void Execute(GameObject avatarRootObject)
return;
}

// If we're here, the avatar is found and valid.
var mappingsComponent = avatarRootObject.GetComponentInChildren<BlendShapeMappings>();
if (mappingsComponent.blendShapeMappings.Count == 0)
{
return;
}

// If we're here, the avatar is found and valid.
var descriptor = avatarRootObject.GetComponent<VRCAvatarDescriptor>();

// Find the avatar's face mesh.
Expand Down

0 comments on commit 8117ab2

Please sign in to comment.