fix slider

This commit is contained in:
ousttrue 2021-11-24 21:13:10 +09:00
parent b0d8cfa567
commit b1c431a04e
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace UniVRM10
public static bool FloatSlider(Rect rect, SerializedProperty prop, float maxValue)
{
var oldValue = prop.floatValue;
var newValue = EditorGUI.Slider(rect, prop.floatValue, 0, 100f);
var newValue = EditorGUI.Slider(rect, prop.floatValue, 0, maxValue);
if (newValue != oldValue)
{
prop.floatValue = newValue;

View File

@ -57,7 +57,7 @@ namespace UniVRM10
y += height;
rect = new Rect(position.x, y, position.width, height);
if (ExpressionEditorHelper.FloatSlider(rect, property.FindPropertyRelative(nameof(MorphTargetBinding.Weight)), 100))
if (ExpressionEditorHelper.FloatSlider(rect, property.FindPropertyRelative(nameof(MorphTargetBinding.Weight)), 1.0f))
{
changed = true;
}