fix: Use localOnly instead of syncType = NotSynced when importing parameter asset (#1460)

This commit is contained in:
ColorlessColor 2025-03-09 12:09:43 +08:00 committed by GitHub
parent e0f55ddc4f
commit aaa448bf57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -211,18 +211,14 @@ namespace nadena.dev.modular_avatar.core.editor
default: pst = ParameterSyncType.Float; break;
}
if (!parameter.networkSynced)
{
pst = ParameterSyncType.NotSynced;
}
target.parameters.Add(new ParameterConfig()
{
internalParameter = false,
nameOrPrefix = parameter.name,
isPrefix = false,
remapTo = "",
syncType = pst,
syncType = pst,
localOnly = !parameter.networkSynced,
defaultValue = parameter.defaultValue,
saved = parameter.saved,
});
@ -260,4 +256,4 @@ namespace nadena.dev.modular_avatar.core.editor
}
}
}
#endif
#endif