Allow internal parameters to be synced

This commit is contained in:
bd_ 2022-10-16 12:51:47 -07:00
parent ff75670ac9
commit ce1c96d806
2 changed files with 4 additions and 1 deletions

View File

@ -232,6 +232,9 @@ namespace net.fushizen.modular_avatar.core.editor
var dictKey = map.nameOrPrefix + (map.isPrefix ? "*" : "");
if (!parameters.ContainsKey(dictKey))
{
// We're trying to remap a parameter that's not actually used by this subtree.
// If it's synced, we'll propagate it (as it could be used by a menu as a no-op?)
// but otherwise disregard it.
if (map.internalParameter || map.syncType == ParameterSyncType.NotSynced) continue;
var param = new DetectedParameter()
{

View File

@ -366,7 +366,7 @@ namespace net.fushizen.modular_avatar.core.editor
}
}
if (!param.internalParameter && !param.isPrefix && param.syncType != ParameterSyncType.NotSynced)
if (!param.isPrefix && param.syncType != ParameterSyncType.NotSynced)
{
AddSyncParam(param, remapTo);
}