chore: update for NDMF API changes (#1016)

This commit is contained in:
bd_ 2024-08-18 18:32:56 -07:00 committed by GitHub
parent b732c5268e
commit 6f95800e41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,8 @@ namespace nadena.dev.modular_avatar.core.editor
{
internal class ObjectSwitcherPreview : IRenderFilter
{
public bool CanEnableRenderers => true;
static TogglablePreviewNode EnableNode = TogglablePreviewNode.Create(
() => "Object Switcher",
qualifiedName: "nadena.dev.modular-avatar/ObjectSwitcherPreview",
@ -138,7 +140,7 @@ namespace nadena.dev.modular_avatar.core.editor
public void OnFrame(Renderer original, Renderer proxy)
{
proxy.gameObject.SetActive(_shouldEnable);
proxy.enabled = _shouldEnable;
}
}
}