mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-28 10:15:06 +08:00
fix: NRE from scale adjuster preview (#1251)
This commit is contained in:
parent
4ec36ca489
commit
816d2b28cb
@ -344,7 +344,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
if (proxy == null) return;
|
||||
|
||||
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
|
||||
// in Dispose
|
||||
|
Loading…
Reference in New Issue
Block a user