From 9d341ac34fa8cd4240d480c2265c8343d2d57463 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 25 Jan 2021 14:25:00 +0900 Subject: [PATCH] set dirty when add Clip #628 --- Assets/VRM/Editor/BlendShape/BlendShapeClipSelector.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/VRM/Editor/BlendShape/BlendShapeClipSelector.cs b/Assets/VRM/Editor/BlendShape/BlendShapeClipSelector.cs index 2865ed6ac..4d1fd2430 100644 --- a/Assets/VRM/Editor/BlendShape/BlendShapeClipSelector.cs +++ b/Assets/VRM/Editor/BlendShape/BlendShapeClipSelector.cs @@ -68,7 +68,7 @@ namespace VRM SelectedIndex = GUILayout.SelectionGrid(SelectedIndex, array, 4); } - if (GUILayout.Button("Add BlendShapeClip")) + if (GUILayout.Button("Ceate BlendShapeClip")) { var dir = Path.GetDirectoryName(AssetDatabase.GetAssetPath(m_avatar)); var path = EditorUtility.SaveFilePanel( @@ -82,6 +82,9 @@ namespace VRM //clip.Prefab = AssetDatabase.LoadAssetAtPath(AssetDatabase.GetAssetPath(target)); m_avatar.Clips.Add(clip); + + // save clips + EditorUtility.SetDirty(m_avatar); } } }