mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
chore: sync object and menu
This commit is contained in:
parent
290c7c30cf
commit
fa4e714f30
@ -49,6 +49,7 @@ 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 },
|
||||||
@ -67,6 +68,10 @@ 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…
x
Reference in New Issue
Block a user