mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 02:35:06 +08:00
fix: NRE in ProxyManager.MapBone (#801)
This commit is contained in:
parent
16642454fc
commit
6da55dc08c
@ -191,7 +191,10 @@ namespace nadena.dev.modular_avatar.core
|
||||
|
||||
private static Transform MapBone(Transform srcBone)
|
||||
{
|
||||
if (_capturedBones.TryGetValue(srcBone, out var newBone) && newBone != null)
|
||||
if (srcBone == null)
|
||||
{
|
||||
return null;
|
||||
} else if (_capturedBones.TryGetValue(srcBone, out var newBone) && newBone != null)
|
||||
{
|
||||
return newBone;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user