Skip to content

Commit

Permalink
[VRChat → VRM] #27 VRC Avatar DescriptorのEye LookにあるBlinkのシェイプキーがnone…
Browse files Browse the repository at this point in the history
…の場合に例外が発生するのを修正
  • Loading branch information
PancakeTorto1se committed Oct 3, 2024
1 parent 06670a6 commit 7db91c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Editor/Utilities/VRChatUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ IEnumerable<string> shapeKeyNames
var settings = instance.GetComponent<VRCAvatarDescriptor>().customEyeLookSettings;
if (settings.eyelidsSkinnedMesh != null && settings.eyelidsSkinnedMesh.sharedMesh != null
&& settings.eyelidsBlendshapes != null && settings.eyelidsBlendshapes.Count() == 3
&& settings.eyelidsSkinnedMesh.sharedMesh.blendShapeCount > settings.eyelidsBlendshapes[0])
&& settings.eyelidsSkinnedMesh.sharedMesh.blendShapeCount > settings.eyelidsBlendshapes[0]
&& settings.eyelidsBlendshapes[0] != -1)
{
expressions[ExpressionPreset.Blink] = new VRChatExpressionBinding() {
ShapeKeyNames = new[] {
Expand Down

0 comments on commit 7db91c8

Please sign in to comment.