Fix transition clipping.
This commit is contained in:
@@ -458,8 +458,8 @@ namespace Cryville.Crtr.Event {
|
|||||||
static readonly PropSrc _ttimesrc = new PropSrc.Float(() => _ttime);
|
static readonly PropSrc _ttimesrc = new PropSrc.Float(() => _ttime);
|
||||||
static readonly PropOp _transop = new PropOp.Vector4(v => _trans = v);
|
static readonly PropOp _transop = new PropOp.Vector4(v => _trans = v);
|
||||||
Vector4 GetTransition(float time, PdtExpression transition) {
|
Vector4 GetTransition(float time, PdtExpression transition) {
|
||||||
if (time >= 1 || transition == null)
|
if (time >= 1) return Vector4.one;
|
||||||
return new Vector4(time, time, time, time);
|
if (transition == null) return new Vector4(time, time, time, time);
|
||||||
_ttime = time;
|
_ttime = time;
|
||||||
_ttimesrc.Invalidate();
|
_ttimesrc.Invalidate();
|
||||||
ChartPlayer.etor.ContextSelfValue = _ttimesrc;
|
ChartPlayer.etor.ContextSelfValue = _ttimesrc;
|
||||||
|
Reference in New Issue
Block a user