Fix motion path effect when sampling at the end of the interval

I'm not sure what I've done to my repo. The diff below is correct but I guess because I merged (not rebased) after committing all the other changesets have gotten pulled in.