From 925d601a1b15bc8167cf9599fc0df27ebb93ca65 Mon Sep 17 00:00:00 2001 From: bd_ Date: Sun, 28 Jul 2024 18:53:23 -0700 Subject: [PATCH] fix: missing observe in ShapeChangerPreview (#932) Closes: #917 --- Editor/ShapeChanger/ShapeChangerPreview.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/ShapeChanger/ShapeChangerPreview.cs b/Editor/ShapeChanger/ShapeChangerPreview.cs index bd48ab58..64e71b81 100644 --- a/Editor/ShapeChanger/ShapeChangerPreview.cs +++ b/Editor/ShapeChanger/ShapeChangerPreview.cs @@ -30,7 +30,7 @@ namespace nadena.dev.modular_avatar.core.editor // TODO: observe avatar root 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(target); if (renderer == null) continue;