active な mesh が 0 のときに export できないようにする

This commit is contained in:
ousttrue
2020-05-19 13:09:13 +09:00
parent e7650d2781
commit 5ab31ebc6c
2 changed files with 17 additions and 0 deletions

View File

@@ -25,6 +25,18 @@ namespace VRM
wiz.OnWizardUpdate();
}
void OnEnable()
{
// Debug.Log("OnEnable");
EditorApplication.hierarchyWindowChanged += OnWizardUpdate;
}
void OnDisable()
{
// Debug.Log("OnDisable");
EditorApplication.hierarchyWindowChanged -= OnWizardUpdate;
}
void OnWizardCreate()
{
// save dialog

View File

@@ -83,6 +83,11 @@ namespace VRM
{
yield return "ReduceBlendshapeSize is need VRMBlendShapeProxy, you need to convert to VRM once.";
}
if(Source.GetComponentsInChildren<Renderer>().All(x => !x.gameObject.activeInHierarchy))
{
yield return "No active mesh";
}
}
public void InitializeFrom(GameObject go)