fix: only create autoparams when a reactive component is present (#969)

Closes: #968
This commit is contained in:
bd_ 2024-08-08 21:51:47 -07:00 committed by GitHub
parent 586fb90dca
commit ead026a918
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,8 @@ namespace nadena.dev.modular_avatar.core.editor
{
if (string.IsNullOrWhiteSpace(mami.Control?.parameter?.name))
{
if (mami.GetComponent<ReactiveComponent>() == null) continue;
if (mami.Control == null) mami.Control = new VRCExpressionsMenu.Control();
mami.Control.parameter = new VRCExpressionsMenu.Control.Parameter
{