mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +08:00
fix: scale adjuster proxy bones appear in hierarchy (#878)
This commit is contained in:
parent
719c39da6e
commit
75ebb74924
@ -57,7 +57,7 @@ namespace nadena.dev.modular_avatar.core.editor.ScaleAdjuster
|
|||||||
if (!force) return null;
|
if (!force) return null;
|
||||||
|
|
||||||
var proxyObj = new GameObject(src.name);
|
var proxyObj = new GameObject(src.name);
|
||||||
proxyObj.hideFlags = HideFlags.DontSave;
|
proxyObj.hideFlags = HideFlags.HideAndDontSave;
|
||||||
proxyObj.AddComponent<SelfDestructComponent>().KeepAlive = this;
|
proxyObj.AddComponent<SelfDestructComponent>().KeepAlive = this;
|
||||||
|
|
||||||
#if MODULAR_AVATAR_DEBUG_HIDDEN
|
#if MODULAR_AVATAR_DEBUG_HIDDEN
|
||||||
@ -120,7 +120,8 @@ namespace nadena.dev.modular_avatar.core.editor.ScaleAdjuster
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entry.original.gameObject.scene != entry.proxy.gameObject.scene)
|
if (entry.original.gameObject.scene != entry.proxy.gameObject.scene &&
|
||||||
|
entry.proxy.transform.parent == null)
|
||||||
{
|
{
|
||||||
SceneManager.MoveGameObjectToScene(entry.proxy.gameObject, entry.original.gameObject.scene);
|
SceneManager.MoveGameObjectToScene(entry.proxy.gameObject, entry.original.gameObject.scene);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user