mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-12 08:42:48 +08:00
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:
parent
2849ea9183
commit
8a1d2b77dd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user