mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-14 17:52:47 +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)
|
if (forSelection)
|
||||||
{
|
{
|
||||||
var path = RuntimeUtil.RelativePath(avatarRoot.gameObject, selected);
|
var path = RuntimeUtil.RelativePath(avatarRoot.gameObject, selected);
|
||||||
objToggle.Inverted = selected.activeSelf;
|
|
||||||
objToggle.Objects.Add(new ToggledObject
|
objToggle.Objects.Add(new ToggledObject
|
||||||
{
|
{
|
||||||
Object = new AvatarObjectReference(){ referencePath = path },
|
Object = new AvatarObjectReference(){ referencePath = path },
|
||||||
@ -68,10 +67,6 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
name = name,
|
name = name,
|
||||||
value = 1,
|
value = 1,
|
||||||
};
|
};
|
||||||
if (forSelection)
|
|
||||||
{
|
|
||||||
mami.isDefault = selected.activeSelf;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (createInstaller)
|
if (createInstaller)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user