Skip to content

Commit

Permalink
Merge pull request #690 from ousttrue/fix/clips_setdirty
Browse files Browse the repository at this point in the history
set dirty when add Clip
  • Loading branch information
ousttrue authored Jan 25, 2021
2 parents d5ae902 + 9d341ac commit 6cf0fd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/VRM/Editor/BlendShape/BlendShapeClipSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void SelectGUI()
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(
Expand All @@ -82,6 +82,9 @@ public void SelectGUI()
//clip.Prefab = AssetDatabase.LoadAssetAtPath<GameObject>(AssetDatabase.GetAssetPath(target));

m_avatar.Clips.Add(clip);

// save clips
EditorUtility.SetDirty(m_avatar);
}
}
}
Expand Down

0 comments on commit 6cf0fd5

Please sign in to comment.