mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-04 19:49:02 +08:00
fix: Use localOnly
instead of syncType = NotSynced
when importing parameter asset (#1460)
This commit is contained in:
parent
e0f55ddc4f
commit
aaa448bf57
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user