From 66ceb9f46e28dc21eb69570809c942c5abbc9c29 Mon Sep 17 00:00:00 2001 From: Keijiro Takahashi Date: Mon, 2 Sep 2019 21:55:54 +0900 Subject: [PATCH] Fix: The first frame is inserted at the end of a video --- Assets/Klak/Hap/Runtime/HapPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Klak/Hap/Runtime/HapPlayer.cs b/Assets/Klak/Hap/Runtime/HapPlayer.cs index 0eb5c42..c7efa5c 100644 --- a/Assets/Klak/Hap/Runtime/HapPlayer.cs +++ b/Assets/Klak/Hap/Runtime/HapPlayer.cs @@ -281,7 +281,7 @@ void LateUpdate() } // Time clamping - var t = _loop ? _time : Mathf.Clamp(_time, 0, duration); + var t = _loop ? _time : Mathf.Clamp(_time, 0, duration - 1e-4f); // Determine if background decoding is available. // Resync shouldn't happen. Not preferable in edit mode.