mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-17 11:50:11 +08:00
fix: ScaleAdjuster breaks in play mode (#705)
This commit is contained in:
parent
e590113a28
commit
e7b09fd787
@ -22,6 +22,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
UnityEngine.Object.DestroyImmediate(component);
|
UnityEngine.Object.DestroyImmediate(component);
|
||||||
|
|
||||||
proxyTransform.localScale = parentAdjuster.Scale;
|
proxyTransform.localScale = parentAdjuster.Scale;
|
||||||
|
parentAdjuster.scaleProxy = null; // prevent destruction of the ScaleProxy itself
|
||||||
UnityEngine.Object.DestroyImmediate(parentAdjuster);
|
UnityEngine.Object.DestroyImmediate(parentAdjuster);
|
||||||
|
|
||||||
boneMappings.Add(proxyTransform.parent, proxyTransform);
|
boneMappings.Add(proxyTransform.parent, proxyTransform);
|
||||||
|
Loading…
Reference in New Issue
Block a user