fix: NRE in GetReplacementPath (#1452)

This commit is contained in:
bd_ 2025-02-19 18:17:11 -08:00 committed by GitHub
parent 53c47bfb0b
commit 07cce41329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;