fix: scale adjuster's hidden bones don't block PBs (#653)

This commit is contained in:
bd_ 2024-02-05 22:02:53 +09:00 committed by GitHub
parent 6b181f3f57
commit 2751c88fea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,11 @@ namespace nadena.dev.modular_avatar.core
private void DeferredValidate() private void DeferredValidate()
{ {
if (this == null) return; if (this == null) return;
if (GetComponent<ModularAvatarPBBlocker>() == null)
{
gameObject.AddComponent<ModularAvatarPBBlocker>();
}
gameObject.hideFlags = HideFlags.HideInHierarchy; gameObject.hideFlags = HideFlags.HideInHierarchy;