check duplicate BlendShapeKey

This commit is contained in:
ousttrue
2018-03-27 21:16:59 +09:00
parent ec7de961e8
commit 6c065e9109

View File

@@ -264,6 +264,12 @@ namespace VRM
EditorGUILayout.Space();
EditorGUILayout.LabelField("CurrentClip", EditorStyles.boldLabel);
var key = BlendShapeKey.CreateFrom(CurrentClip);
if(m_target.BlendShapeAvatar.Clips.Where(x => key.Match(x)).Count() > 1)
{
EditorGUILayout.HelpBox("duplicate clip", MessageType.Error);
}
/*var loadClip = (BlendShapeClip)*/
GUI.enabled = false;
EditorGUILayout.ObjectField("Current clip",