From 56672062c6b71003c4e52e0ffa0f22c0f702bd7a Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 29 Mar 2018 01:50:41 +0900 Subject: [PATCH] fix VRMBlnedShapeProxyEditor focus --- .../BlendShape/Editor/VRMBlnedShapeProxyEditor.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs b/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs index 6706ddc6c..8470cc7cf 100644 --- a/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs +++ b/Scripts/BlendShape/Editor/VRMBlnedShapeProxyEditor.cs @@ -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);