Skip to content

Commit

Permalink
Merge pull request #58 from Fraxul/main
Browse files Browse the repository at this point in the history
Mark jaw-flap bone as a moving transform
  • Loading branch information
d4rkc0d3r authored Oct 12, 2023
2 parents 357f75c + 4868823 commit d1081f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Editor/d4rkAvatarOptimizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,11 @@ private HashSet<Transform> FindAllMovingTransforms()
transforms.Add(avDescriptor.customEyeLookSettings.upperRightEyelid);
}

if (avDescriptor.lipSync == VRC.SDKBase.VRC_AvatarDescriptor.LipSyncStyle.JawFlapBone)
{
transforms.Add(avDescriptor.lipSyncJawBone);
}

var layers = avDescriptor.baseAnimationLayers.Select(a => a.animatorController).ToList();
layers.AddRange(avDescriptor.specialAnimationLayers.Select(a => a.animatorController));
foreach (var layer in layers.Where(a => a != null))
Expand Down

0 comments on commit d1081f8

Please sign in to comment.