Fix transition clipping.

This commit is contained in:
2023-04-20 19:47:35 +08:00
parent 0699bc5614
commit 1c1560f17f

View File

@@ -458,8 +458,8 @@ namespace Cryville.Crtr.Event {
static readonly PropSrc _ttimesrc = new PropSrc.Float(() => _ttime);
static readonly PropOp _transop = new PropOp.Vector4(v => _trans = v);
Vector4 GetTransition(float time, PdtExpression transition) {
if (time >= 1 || transition == null)
return new Vector4(time, time, time, time);
if (time >= 1) return Vector4.one;
if (transition == null) return new Vector4(time, time, time, time);
_ttime = time;
_ttimesrc.Invalidate();
ChartPlayer.etor.ContextSelfValue = _ttimesrc;