diff --git a/Editor/MetaMovementSetupTool.cs b/Editor/MetaMovementSetupTool.cs index cab39a2..bb3241c 100644 --- a/Editor/MetaMovementSetupTool.cs +++ b/Editor/MetaMovementSetupTool.cs @@ -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();