Bugfix #4284
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:
@@ -386,7 +386,7 @@ static void curvemap_make_table(CurveMap *cuma, rctf *clipr)
|
|||||||
while(curf >= fp[0] && fp!=lastpoint) {
|
while(curf >= fp[0] && fp!=lastpoint) {
|
||||||
fp+=2;
|
fp+=2;
|
||||||
}
|
}
|
||||||
if(fp==lastpoint)
|
if(curf >= fp[0] && fp==lastpoint)
|
||||||
cmp[a].y= fp[1];
|
cmp[a].y= fp[1];
|
||||||
else {
|
else {
|
||||||
float fac1= fp[0] - fp[-2];
|
float fac1= fp[0] - fp[-2];
|
||||||
|
|||||||
@@ -2196,7 +2196,7 @@ static void ui_draw_but_CURVE(uiBut *but)
|
|||||||
fy= but->y1 + zoomy*(cmp[a].y-offsy);
|
fy= but->y1 + zoomy*(cmp[a].y-offsy);
|
||||||
glVertex2f(fx, fy);
|
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();
|
glEnd();
|
||||||
|
|
||||||
/* the points, use aspect to make them visible on edges */
|
/* the points, use aspect to make them visible on edges */
|
||||||
|
|||||||
Reference in New Issue
Block a user