diff --git a/Editor/ColliderManagerEditor.cs b/Editor/ColliderManagerEditor.cs index b6a95a6..525bb26 100644 --- a/Editor/ColliderManagerEditor.cs +++ b/Editor/ColliderManagerEditor.cs @@ -320,37 +320,15 @@ private void UpdateSymmetrical(SymmetricalUpdateType type) } else if (boneName.Contains("_Hip")) { - symName = boneName; - - } - - if (!string.IsNullOrEmpty(symName)) + symName = boneName; + } + else if (name == "CC_Base_NeckTwist01_Capsule(1)") { - foreach (ColliderSettings cs in colliderManager.settings) - { - if (cs != currentCollider && cs.name.StartsWith(symName)) - { - if (type == SymmetricalUpdateType.Update) - { - cs.MirrorX(currentCollider); - cs.Update(); - } - else if (type == SymmetricalUpdateType.Reset) - { - cs.Reset(); - } - else if (type == SymmetricalUpdateType.Fetch) - { - cs.FetchSettings(); - } - } - } + symName = "CC_Base_NeckTwist01_Capsule(2)"; } - - symName = null; - if (name == "CC_Base_NeckTwist01_Capsule(1)") + else if (name == "CC_Base_NeckTwist01_Capsule(2)") { - symName = "CC_Base_NeckTwist01_Capsule(2)"; + symName = "CC_Base_NeckTwist01_Capsule(1)"; } if (!string.IsNullOrEmpty(symName)) @@ -361,7 +339,7 @@ private void UpdateSymmetrical(SymmetricalUpdateType type) { if (type == SymmetricalUpdateType.Update) { - cs.MirrorZ(currentCollider); + cs.MirrorX(currentCollider); cs.Update(); } else if (type == SymmetricalUpdateType.Reset) @@ -375,7 +353,6 @@ private void UpdateSymmetrical(SymmetricalUpdateType type) } } } - } private void SelectCurrentCollider(object sel)