mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: empty MA Parameters names break auto param UI (#1346)
This commit is contained in:
parent
30512c26e8
commit
d23b9f94a2
@ -173,7 +173,12 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
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)
|
||||||
)
|
)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(param.EffectiveName))
|
||||||
|
{
|
||||||
rootParameters[param.EffectiveName] = param;
|
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