# HG changeset patch # User Drew Perttula # Date 1401128363 0 # Node ID 09c3fc7cf6bab3a4236c3eab4a9b11a2a2c5070f # Parent 3506c26167286619978e51bbafb29c78cdf37bb0 requesting a curve at t=0 used to return the last value instead of the first Ignore-this: bb2fbc67b2a86441674da187a8654326 diff -r 3506c2616728 -r 09c3fc7cf6ba light9/curvecalc/curve.py --- a/light9/curvecalc/curve.py Mon May 26 08:05:49 2014 +0000 +++ b/light9/curvecalc/curve.py Mon May 26 18:19:23 2014 +0000 @@ -56,6 +56,8 @@ i = bisect_left(self.points,(t,None))-1 + if i == -1: + return self.points[0][1] if self.points[i][0]>t: return self.points[i][1] if i>=len(self.points)-1: