From e7b09fd78799f201ef2aabc0e9a00858d9254d12 Mon Sep 17 00:00:00 2001 From: bd_ Date: Tue, 27 Feb 2024 00:03:36 -0800 Subject: [PATCH] fix: ScaleAdjuster breaks in play mode (#705) --- Editor/ScaleAdjusterPass.cs | 1 + 1 file changed, 1 insertion(+) 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);