fix VRMBlnedShapeProxyEditor focus

This commit is contained in:
ousttrue
2018-03-29 01:50:41 +09:00
parent a8f80d72a5
commit 56672062c6

View File

@@ -264,12 +264,6 @@ 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",
@@ -280,6 +274,12 @@ namespace VRM
CurrentClip.BlendShapeName = EditorGUILayout.TextField("BlendShapeName", CurrentClip.BlendShapeName);
var key = BlendShapeKey.CreateFrom(CurrentClip);
if (m_target.BlendShapeAvatar.Clips.Where(x => key.Match(x)).Count() > 1)
{
EditorGUILayout.HelpBox("duplicate clip", MessageType.Error);
}
// sliders
EditorGUILayout.Space();
EditorGUILayout.LabelField("BlendShapeValues", EditorStyles.boldLabel);