mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-04 19:49:02 +08:00
fix: NRE in GetReplacementPath
This commit is contained in:
parent
53c47bfb0b
commit
a7f3fbc774
@ -178,7 +178,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
return cached;
|
||||
}
|
||||
|
||||
var obj = asc.ObjectPathRemapper.GetObjectForPath(bindingPath)!.transform;
|
||||
var obj = asc.ObjectPathRemapper.GetObjectForPath(bindingPath)?.transform;
|
||||
while (obj != null && transformLookthrough.Contains(obj))
|
||||
{
|
||||
obj = obj.parent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user