mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-28 13:54:45 -05:00
check duplicate BlendShapeKey
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user