This commit is contained in:
CroakFang
2022-11-13 18:28:00 +08:00
parent 9dfc93d39d
commit 3e0d3f6e57
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ public class UmaViewerUI : MonoBehaviour
container.Name = morph.name + " (" + morph.tag + ")"; container.Name = morph.name + " (" + morph.tag + ")";
container.Slider.value = morph.weight; container.Slider.value = morph.weight;
container.Slider.maxValue = 1; container.Slider.maxValue = 1;
container.Slider.minValue = 0; container.Slider.minValue = morph.tag.Contains("Range") ? -1 : 0;
container.Slider.onValueChanged.AddListener((a) => { target.ChangeMorphWeight(morph, a); }); container.Slider.onValueChanged.AddListener((a) => { target.ChangeMorphWeight(morph, a); });
} }
} }
@@ -919,7 +919,7 @@ public class UnityHumanoidVMDRecorder : MonoBehaviour
{ {
val += morph.weight; val += morph.weight;
} }
ValueList.Add((Mathf.Clamp01(val), true)); ValueList.Add((Mathf.Clamp(val, -1, 1), true));
} }
} }
} }