Fix exception caused by nested MA Parameters using the same parameter name

This commit is contained in:
bd_ 2022-11-24 17:18:34 -08:00
parent aca6af3cb4
commit 7ed1593bda

View File

@ -380,12 +380,12 @@ namespace nadena.dev.modular_avatar.core.editor
{
var suffixKey = param.nameOrPrefix + suffix;
var suffixValue = remapTo + suffix;
remaps = remaps.Add(suffixKey, suffixValue);
remaps = remaps.SetItem(suffixKey, suffixValue);
}
}
else
{
remaps = remaps.Add(param.nameOrPrefix, remapTo);
remaps = remaps.SetItem(param.nameOrPrefix, remapTo);
}
}