mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-06-02 22:14:30 -05:00
1.0 では未使用の AnimationCurve を除去
This commit is contained in:
parent
e63c6ff2f5
commit
27fc4324c8
|
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
|
|
@ -9,8 +7,6 @@ namespace UniVRM10
|
|||
[Serializable]
|
||||
public class CurveMapper
|
||||
{
|
||||
private AnimationCurve _curve = AnimationCurve.Linear(0, 0, 1.0f, 1.0f);
|
||||
|
||||
[Range(20.0f, 90.0f)]
|
||||
public float CurveXRangeDegree;
|
||||
|
||||
|
|
@ -51,8 +47,8 @@ namespace UniVRM10
|
|||
{
|
||||
src = CurveXRangeDegree;
|
||||
}
|
||||
return _curve.Evaluate(src / CurveXRangeDegree) * CurveYRangeDegree;
|
||||
return src / CurveXRangeDegree * CurveYRangeDegree;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user