mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-31 02:32:53 +08:00
fix: only create autoparams when a reactive component is present (#969)
Closes: #968
This commit is contained in:
parent
586fb90dca
commit
ead026a918
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user