Merge pull request #4958 from samme/fix/path-follower-complete

Fix PathFollower always at end of path
This commit is contained in:
Richard Davey 2020-01-17 11:02:05 +00:00 committed by GitHub
commit 599aa277ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -346,7 +346,7 @@ var PathFollower = {
var tweenData = tween.data[0];
var pathVector = this.pathVector;
if (tweenData.state !== TWEEN_CONST.COMPLETE)
if (tweenData.state === TWEEN_CONST.COMPLETE)
{
this.path.getPoint(1, pathVector);