From 1c1560f17f33c128adc69d333386cf1f1d835c00 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Thu, 20 Apr 2023 19:47:35 +0800 Subject: [PATCH] Fix transition clipping. --- Assets/Cryville/Crtr/Event/ContainerState.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Cryville/Crtr/Event/ContainerState.cs b/Assets/Cryville/Crtr/Event/ContainerState.cs index 70c221a..1ab1c68 100644 --- a/Assets/Cryville/Crtr/Event/ContainerState.cs +++ b/Assets/Cryville/Crtr/Event/ContainerState.cs @@ -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;