fix: blendshape sync reserializes prefab assets

Hopefully fixes: #1148
This commit is contained in:
bd_ 2024-09-15 14:19:32 -07:00
parent 3b28ea2b14
commit 28523faa59

View File

@ -72,7 +72,9 @@ namespace nadena.dev.modular_avatar.core
private void Rebind()
{
#if UNITY_EDITOR
if (this == null) return;
if (UnityEditor.PrefabUtility.IsPartOfPrefabAsset(this)) return;
_editorBindings = new List<EditorBlendshapeBinding>();
@ -110,6 +112,7 @@ namespace nadena.dev.modular_avatar.core
}
Update();
#endif
}
private void Update()