Update blendshapes on rebind

Closes: #69
This commit is contained in:
bd_ 2022-11-07 18:52:36 -08:00
parent 033b316fde
commit c634956569

View File

@ -32,7 +32,7 @@ namespace net.fushizen.modular_avatar.core
[RequireComponent(typeof(SkinnedMeshRenderer))] [RequireComponent(typeof(SkinnedMeshRenderer))]
[DisallowMultipleComponent] [DisallowMultipleComponent]
[ExecuteInEditMode] [ExecuteAlways]
public class ModularAvatarBlendshapeSync : AvatarTagComponent public class ModularAvatarBlendshapeSync : AvatarTagComponent
{ {
public List<BlendshapeBinding> Bindings = new List<BlendshapeBinding>(); public List<BlendshapeBinding> Bindings = new List<BlendshapeBinding>();
@ -94,6 +94,8 @@ namespace net.fushizen.modular_avatar.core
LocalBlendshapeIndex = localIndex LocalBlendshapeIndex = localIndex
}); });
} }
Update();
} }
private void Update() private void Update()