Skip to content

Commit

Permalink
Revert "chore: sync object and menu"
Browse files Browse the repository at this point in the history
This reverts commit fa4e714.

This is temporarily reverted until we have support in MenuItem to ensure
that `0` is always the default selection, even for toggles. This should
be reverted when #1433 is done (which will resolve #1434)
  • Loading branch information
bdunderscore committed Feb 3, 2025
1 parent 2849ea9 commit 8a1d2b7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Editor/Inspector/Menu/ToggleCreatorShortcut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ private static void CreateToggleImpl(MenuCommand command, bool forSelection)
if (forSelection)
{
var path = RuntimeUtil.RelativePath(avatarRoot.gameObject, selected);
objToggle.Inverted = selected.activeSelf;
objToggle.Objects.Add(new ToggledObject
{
Object = new AvatarObjectReference(){ referencePath = path },
Expand All @@ -68,10 +67,6 @@ private static void CreateToggleImpl(MenuCommand command, bool forSelection)
name = name,
value = 1,
};
if (forSelection)
{
mami.isDefault = selected.activeSelf;
}

if (createInstaller)
{
Expand Down

0 comments on commit 8a1d2b7

Please sign in to comment.