chore: sync object and menu

This commit is contained in:
tliks 2025-02-02 12:32:30 +09:00
parent 290c7c30cf
commit fa4e714f30

View File

@ -49,6 +49,7 @@ 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 },
@ -67,6 +68,10 @@ namespace nadena.dev.modular_avatar.core.editor
name = name,
value = 1,
};
if (forSelection)
{
mami.isDefault = selected.activeSelf;
}
if (createInstaller)
{