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

@ -18,6 +18,11 @@ namespace nadena.dev.modular_avatar.core
{
if (this == null) return;
if (GetComponent<ModularAvatarPBBlocker>() == null)
{
gameObject.AddComponent<ModularAvatarPBBlocker>();
}
gameObject.hideFlags = HideFlags.HideInHierarchy;
var parentObject = transform.parent;