fix: ScaleAdjuster breaks in play mode (#705)

This commit is contained in:
bd_ 2024-02-27 00:03:36 -08:00 committed by GitHub
parent e590113a28
commit e7b09fd787
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);