From d83c3351d7f494d835b9c0c87715636c5354b3b1 Mon Sep 17 00:00:00 2001 From: bd_ Date: Tue, 13 Aug 2024 20:33:08 -0700 Subject: [PATCH] fix: MA Move Independently is not listed in the MA group in Add Components (#1007) Closes: #1002 --- Runtime/MAMoveIndependently.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Runtime/MAMoveIndependently.cs b/Runtime/MAMoveIndependently.cs index 360c4898..374fbc24 100644 --- a/Runtime/MAMoveIndependently.cs +++ b/Runtime/MAMoveIndependently.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using nadena.dev.modular_avatar.core.armature_lock; +using UnityEditor; using UnityEngine; #if MA_VRCSDK3_AVATARS using VRC.SDKBase; @@ -9,7 +10,7 @@ using VRC.SDKBase; namespace nadena.dev.modular_avatar.core.ArmatureAwase { [ExecuteInEditMode] - //[AddComponentMenu("")] + [AddComponentMenu("Modular Avatar/MA Move Independently")] [DisallowMultipleComponent] [HelpURL("https://modular-avatar.nadena.dev/docs/reference/move-independently?lang=auto")] class MAMoveIndependently : MonoBehaviour, IEditorOnly @@ -165,7 +166,7 @@ namespace nadena.dev.modular_avatar.core.ArmatureAwase var newRotation = childNewLocal.rotation; var newScale = childNewLocal.lossyScale; #if UNITY_EDITOR - UnityEditor.Undo.RecordObject(child, UnityEditor.Undo.GetCurrentGroupName()); + Undo.RecordObject(child, Undo.GetCurrentGroupName()); #endif child.localPosition = newPosition;