diff --git a/Editor/ScaleAdjusterPass.cs b/Editor/ScaleAdjusterPass.cs index cc917027..7ffbd0a0 100644 --- a/Editor/ScaleAdjusterPass.cs +++ b/Editor/ScaleAdjusterPass.cs @@ -22,6 +22,7 @@ namespace nadena.dev.modular_avatar.core.editor UnityEngine.Object.DestroyImmediate(component); proxyTransform.localScale = parentAdjuster.Scale; + parentAdjuster.scaleProxy = null; // prevent destruction of the ScaleProxy itself UnityEngine.Object.DestroyImmediate(parentAdjuster); boneMappings.Add(proxyTransform.parent, proxyTransform);