mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-19 08:41:49 -05:00
Merge pull request #690 from ousttrue/fix/clips_setdirty
set dirty when add Clip
This commit is contained in:
commit
6cf0fd554e
|
|
@ -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<GameObject>(AssetDatabase.GetAssetPath(target));
|
||||
|
||||
m_avatar.Clips.Add(clip);
|
||||
|
||||
// save clips
|
||||
EditorUtility.SetDirty(m_avatar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user