mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: blendshape sync reserializes prefab assets (#1153)
Hopefully fixes: #1148
This commit is contained in:
parent
48b7d80f7c
commit
9073ff8c2d
@ -72,7 +72,9 @@ namespace nadena.dev.modular_avatar.core
|
|||||||
|
|
||||||
private void Rebind()
|
private void Rebind()
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
if (this == null) return;
|
if (this == null) return;
|
||||||
|
if (UnityEditor.PrefabUtility.IsPartOfPrefabAsset(this)) return;
|
||||||
|
|
||||||
_editorBindings = new List<EditorBlendshapeBinding>();
|
_editorBindings = new List<EditorBlendshapeBinding>();
|
||||||
|
|
||||||
@ -110,6 +112,7 @@ namespace nadena.dev.modular_avatar.core
|
|||||||
}
|
}
|
||||||
|
|
||||||
Update();
|
Update();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
Loading…
Reference in New Issue
Block a user