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