Skip to content

Commit

Permalink
Fix: The first frame is inserted at the end of a video
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Sep 2, 2019
1 parent 7eaa043 commit 66ceb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Klak/Hap/Runtime/HapPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 66ceb9f

Please sign in to comment.