mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 13:34:39 -05:00
move MeshIntegratorWizard menu
This commit is contained in:
parent
1a1d42bb44
commit
c0afd7f4d5
|
|
@ -10,8 +10,6 @@ namespace VRM
|
|||
{
|
||||
public class MeshIntegratorWizard : ScriptableWizard
|
||||
{
|
||||
const string MENU_KEY = "Assets/UnityEditorScripts/MeshIntegratorWizard";
|
||||
|
||||
[SerializeField]
|
||||
GameObject m_root;
|
||||
|
||||
|
|
@ -26,7 +24,7 @@ namespace VRM
|
|||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if(!(obj is MaterialKey))
|
||||
if (!(obj is MaterialKey))
|
||||
{
|
||||
return base.Equals(obj);
|
||||
}
|
||||
|
|
@ -60,8 +58,7 @@ namespace VRM
|
|||
[Header("Result")]
|
||||
public MeshIntegrationResult[] integrationResults;
|
||||
|
||||
[MenuItem(MENU_KEY)]
|
||||
static void CreateWizard()
|
||||
public static void CreateWizard()
|
||||
{
|
||||
ScriptableWizard.DisplayWizard<MeshIntegratorWizard>("MeshIntegrator", "Integrate and close window", "Integrate");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ namespace VRM
|
|||
[MenuItem(UserMenuPrefix + "/MeshIntegration", priority = 21)]
|
||||
private static void MeshIntegration() => MeshIntegratorEditor.Integrate();
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/MeshIntegratorWizard", priority = 21)]
|
||||
private static void OpenMeshIntegratorWizard() => MeshIntegratorWizard.CreateWizard();
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/Save SpringBone to JSON", validate = true)]
|
||||
private static bool SaveSpringBoneToJsonValidation() => VRMSpringBoneUtilityEditor.SaveSpringBoneToJsonValidation();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user