mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
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:
parent
08b3880d23
commit
366ff0832f
@ -18,6 +18,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
{
|
{
|
||||||
var proxyObject = new GameObject("ScaleProxy");
|
var proxyObject = new GameObject("ScaleProxy");
|
||||||
var proxyTransform = proxyObject.transform;
|
var proxyTransform = proxyObject.transform;
|
||||||
|
proxyObject.AddComponent<ModularAvatarPBBlocker>();
|
||||||
|
|
||||||
proxyTransform.SetParent(adjuster.transform, false);
|
proxyTransform.SetParent(adjuster.transform, false);
|
||||||
proxyTransform.localPosition = Vector3.zero;
|
proxyTransform.localPosition = Vector3.zero;
|
||||||
|
Loading…
Reference in New Issue
Block a user