mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-27 13:24:42 -05:00
active な mesh が 0 のときに export できないようにする
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user