Skip to content

Commit

Permalink
1.3.5
Browse files Browse the repository at this point in the history
-
  • Loading branch information
soupday committed Jul 26, 2022
1 parent 73495c3 commit c032f09
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions Editor/ColliderManagerEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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)
Expand All @@ -375,7 +353,6 @@ private void UpdateSymmetrical(SymmetricalUpdateType type)
}
}
}

}

private void SelectCurrentCollider(object sel)
Expand Down

0 comments on commit c032f09

Please sign in to comment.