mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 02:35:06 +08:00
fix: empty MA Parameters names break auto param UI (#1346)
This commit is contained in:
parent
30512c26e8
commit
d23b9f94a2
@ -169,11 +169,16 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<string, ProvidedParameter> rootParameters = new();
|
Dictionary<string, ProvidedParameter> rootParameters = new();
|
||||||
|
|
||||||
foreach (var param in ParameterIntrospectionCache.GetParametersForObject(parentAvatar.gameObject)
|
foreach (var param in ParameterIntrospectionCache.GetParametersForObject(parentAvatar.gameObject)
|
||||||
.Where(p => p.Namespace == ParameterNamespace.Animator)
|
.Where(p => p.Namespace == ParameterNamespace.Animator)
|
||||||
)
|
)
|
||||||
rootParameters[param.EffectiveName] = param;
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(param.EffectiveName))
|
||||||
|
{
|
||||||
|
rootParameters[param.EffectiveName] = param;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var remaps = ParameterIntrospectionCache.GetParameterRemappingsAt(paramRef);
|
var remaps = ParameterIntrospectionCache.GetParameterRemappingsAt(paramRef);
|
||||||
foreach (var remap in remaps)
|
foreach (var remap in remaps)
|
||||||
|
@ -59,7 +59,8 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
|
|
||||||
public IEnumerable<ProvidedParameter> GetSuppliedParameters(ndmf.BuildContext context = null)
|
public IEnumerable<ProvidedParameter> GetSuppliedParameters(ndmf.BuildContext context = null)
|
||||||
{
|
{
|
||||||
return _component.parameters.Select(p =>
|
return _component.parameters
|
||||||
|
.Select(p =>
|
||||||
{
|
{
|
||||||
AnimatorControllerParameterType paramType;
|
AnimatorControllerParameterType paramType;
|
||||||
bool animatorOnly = false;
|
bool animatorOnly = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user