mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-07 21:18:59 +08:00
parent
ed29b5afbc
commit
929f1a4d9f
@ -46,7 +46,14 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Modular Avatar/Apply to current avatar", false)]
|
||||
[MenuItem("Tools/Modular Avatar/Manual bake avatar", true)]
|
||||
private static bool ValidateApplyToCurrentAvatar()
|
||||
{
|
||||
var avatar = Selection.activeGameObject;
|
||||
return (avatar != null && avatar.GetComponent<VRCAvatarDescriptor>() != null);
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Modular Avatar/Manual bake avatar", false)]
|
||||
private static void ApplyToCurrentAvatar()
|
||||
{
|
||||
var avatar = Selection.activeGameObject;
|
||||
|
Loading…
x
Reference in New Issue
Block a user