diff --git a/Assets/Scripts/UmaViewerUI.cs b/Assets/Scripts/UmaViewerUI.cs index f59b3cc..b5c6f34 100644 --- a/Assets/Scripts/UmaViewerUI.cs +++ b/Assets/Scripts/UmaViewerUI.cs @@ -223,7 +223,7 @@ public class UmaViewerUI : MonoBehaviour container.Name = morph.name + " (" + morph.tag + ")"; container.Slider.value = morph.weight; 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); }); } } diff --git a/Assets/Scripts/VMDRecorder/UnityHumanoidVMDRecorder.cs b/Assets/Scripts/VMDRecorder/UnityHumanoidVMDRecorder.cs index 5e20f48..f9989cd 100644 --- a/Assets/Scripts/VMDRecorder/UnityHumanoidVMDRecorder.cs +++ b/Assets/Scripts/VMDRecorder/UnityHumanoidVMDRecorder.cs @@ -919,7 +919,7 @@ public class UnityHumanoidVMDRecorder : MonoBehaviour { val += morph.weight; } - ValueList.Add((Mathf.Clamp01(val), true)); + ValueList.Add((Mathf.Clamp(val, -1, 1), true)); } } }