fix: Scale Adjuster breaks physbones (#938)

Scale Adjuster introduces child transforms, and thus needs to add PB exclusions
to avoid breaking parent PB chains.

Closes: #924
This commit is contained in:
bd_ 2024-07-30 08:44:42 -07:00 committed by GitHub
parent 08b3880d23
commit 366ff0832f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,7 @@ namespace nadena.dev.modular_avatar.core.editor
{
var proxyObject = new GameObject("ScaleProxy");
var proxyTransform = proxyObject.transform;
proxyObject.AddComponent<ModularAvatarPBBlocker>();
proxyTransform.SetParent(adjuster.transform, false);
proxyTransform.localPosition = Vector3.zero;