mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 02:35:06 +08:00
fix: animator initial value type conversion (#1163)
This commit is contained in:
parent
3648348184
commit
56f1b67d31
@ -40,7 +40,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
switch (parameters[i].type)
|
||||
{
|
||||
case AnimatorControllerParameterType.Bool:
|
||||
parameters[i].defaultBool = defaultValue > 0.5f;
|
||||
parameters[i].defaultBool = defaultValue != 0.0f;
|
||||
break;
|
||||
case AnimatorControllerParameterType.Int:
|
||||
parameters[i].defaultInt = Mathf.RoundToInt(defaultValue);
|
||||
|
Loading…
Reference in New Issue
Block a user