fix: missing observe in ShapeChangerPreview (#932)

Closes: #917
This commit is contained in:
bd_ 2024-07-28 18:53:23 -07:00 committed by GitHub
parent 749d4dac4f
commit 925d601a1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ namespace nadena.dev.modular_avatar.core.editor
// TODO: observe avatar root // TODO: observe avatar root
if (!ctx.ActiveAndEnabled(changer)) continue; if (!ctx.ActiveAndEnabled(changer)) continue;
var target = ctx.Observe(changer.targetRenderer.Get(changer)); var target = ctx.Observe(changer, _ => changer.targetRenderer.Get(changer));
var renderer = ctx.GetComponent<SkinnedMeshRenderer>(target); var renderer = ctx.GetComponent<SkinnedMeshRenderer>(target);
if (renderer == null) continue; if (renderer == null) continue;