diff --git a/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectPrepass.cs b/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectPrepass.cs index d6326afc..37e0de57 100644 --- a/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectPrepass.cs +++ b/Editor/ReactiveObjects/AnimationGeneration/ReactiveObjectPrepass.cs @@ -17,7 +17,9 @@ namespace nadena.dev.modular_avatar.core.editor var hasShapeChanger = context.AvatarRootObject.GetComponentInChildren() != null; var hasObjectSwitcher = context.AvatarRootObject.GetComponentInChildren() != null; - if (hasShapeChanger || hasObjectSwitcher) + var hasMaterialSetter = + context.AvatarRootObject.GetComponentInChildren() != null; + if (hasShapeChanger || hasObjectSwitcher || hasMaterialSetter) { var clip = new AnimationClip(); clip.name = "MA Shape Changer Defaults";