Curves Widget: The endpoint condition for calculating the interpolation
had an error, moving too quickly to a constant value (for extending).
This commit is contained in:
2006-06-09 13:04:21 +00:00
parent e18e59ee67
commit 27bea32b70
2 changed files with 2 additions and 2 deletions

View File

@@ -386,7 +386,7 @@ static void curvemap_make_table(CurveMap *cuma, rctf *clipr)
while(curf >= fp[0] && fp!=lastpoint) {
fp+=2;
}
if(fp==lastpoint)
if(curf >= fp[0] && fp==lastpoint)
cmp[a].y= fp[1];
else {
float fac1= fp[0] - fp[-2];

View File

@@ -2196,7 +2196,7 @@ static void ui_draw_but_CURVE(uiBut *but)
fy= but->y1 + zoomy*(cmp[a].y-offsy);
glVertex2f(fx, fy);
}
glVertex2f(but->x2, but->y1 + zoomy*(cmp[a-1].y-offsy)); /* last point */
glVertex2f(but->x2, but->y1 + zoomy*(cmp[CM_TABLE].y-offsy)); /* last point */
glEnd();
/* the points, use aspect to make them visible on edges */