Revert "chore: sync object and menu"

This reverts commit fa4e714f30.

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)
This commit is contained in:
bd_ 2025-02-02 19:45:44 -08:00
parent 2849ea9183
commit 8a1d2b77dd

View File

@ -49,7 +49,6 @@ namespace nadena.dev.modular_avatar.core.editor
if (forSelection)
{
var path = RuntimeUtil.RelativePath(avatarRoot.gameObject, selected);
objToggle.Inverted = selected.activeSelf;
objToggle.Objects.Add(new ToggledObject
{
Object = new AvatarObjectReference(){ referencePath = path },
@ -68,10 +67,6 @@ namespace nadena.dev.modular_avatar.core.editor
name = name,
value = 1,
};
if (forSelection)
{
mami.isDefault = selected.activeSelf;
}
if (createInstaller)
{