bug fix
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user