mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 21:38:59 +08:00
feat: improve usability of manual bake options
* select output avatar on manual bake * add GameObject context menus
This commit is contained in:
parent
f584f38303
commit
7d97c75ef8
@ -66,6 +66,18 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||
}
|
||||
|
||||
[MenuItem("GameObject/[ModularAvatar] Manual bake avatar", true, 49)]
|
||||
static bool ValidateApplyToCurrentAvatarGameobject()
|
||||
{
|
||||
return ValidateApplyToCurrentAvatar();
|
||||
}
|
||||
|
||||
[MenuItem("GameObject/[ModularAvatar] Manual bake avatar", false, 49)]
|
||||
static void ApplyToCurrentAvatarGameobject()
|
||||
{
|
||||
ApplyToCurrentAvatar();
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Modular Avatar/Manual bake avatar", true)]
|
||||
private static bool ValidateApplyToCurrentAvatar()
|
||||
{
|
||||
@ -102,6 +114,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
BuildReport.Clear();
|
||||
|
||||
ProcessAvatar(avatar);
|
||||
Selection.objects = new Object[] { avatar };
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user