Skip to content

Commit

Permalink
fix: add check for missing layer
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough committed Aug 14, 2024
1 parent 50731ea commit 8ff738a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Editor/MetaMovementSetupTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public static void MetaMovementSetup()
var restPoseObjectHumanoid = AddComponentsHelper.GetRestPoseObject(AddComponentsHelper.CheckIfTPose(animator));
AnimationUtilities.UpdateToAnimatorPose(animator);
HelperMenusBody.SetupCharacterForAnimationRiggingRetargetingConstraints(activeGameObject, restPoseObjectHumanoid, true, true);
MetaMovementHelper.SetLayerRecursively(activeGameObject, LayerMask.NameToLayer(META_CHARACTER_LAYER));
if(LayerMask.NameToLayer(META_CHARACTER_LAYER) >= 0)
{
MetaMovementHelper.SetLayerRecursively(activeGameObject, LayerMask.NameToLayer(META_CHARACTER_LAYER));
return;
}
SetupFaceTracking(activeGameObject);
MetaMovementHelper.SetupHierarchyTwist(activeGameObject);
var deformation = activeGameObject.GetComponentInChildren<FullBodyDeformationConstraint>();
Expand Down

0 comments on commit 8ff738a

Please sign in to comment.