mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
fix: NRE from scale adjuster preview
This commit is contained in:
parent
a71af7ae0a
commit
614663f3a7
@ -344,7 +344,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
if (proxy == null) return;
|
if (proxy == null) return;
|
||||||
|
|
||||||
var curParent = proxy.transform.parent ?? original.transform.parent;
|
var curParent = proxy.transform.parent ?? original.transform.parent;
|
||||||
if (_finalBonesMap.TryGetValue(curParent, out var newRoot))
|
if (curParent != null && _finalBonesMap.TryGetValue(curParent, out var newRoot))
|
||||||
{
|
{
|
||||||
// We need to remember this proxy so we can avoid destroying it when we destroy VirtualAvatarRoot
|
// We need to remember this proxy so we can avoid destroying it when we destroy VirtualAvatarRoot
|
||||||
// in Dispose
|
// in Dispose
|
||||||
|
Loading…
x
Reference in New Issue
Block a user