fix: blendshape sync reserializes prefab assets (#1153)

Hopefully fixes: #1148
This commit is contained in:
bd_ 2024-09-15 22:33:10 -04:00 committed by GitHub
parent 48b7d80f7c
commit 9073ff8c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()