mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 21:38:59 +08:00
Allow internal parameters to be synced
This commit is contained in:
parent
ff75670ac9
commit
ce1c96d806
@ -232,6 +232,9 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
var dictKey = map.nameOrPrefix + (map.isPrefix ? "*" : "");
|
var dictKey = map.nameOrPrefix + (map.isPrefix ? "*" : "");
|
||||||
if (!parameters.ContainsKey(dictKey))
|
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;
|
if (map.internalParameter || map.syncType == ParameterSyncType.NotSynced) continue;
|
||||||
var param = new DetectedParameter()
|
var param = new DetectedParameter()
|
||||||
{
|
{
|
||||||
|
@ -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);
|
AddSyncParam(param, remapTo);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user