Curve: CurveMapping Extend Option
Extend options are currently stored per curve. This was not clearly communicated to the user and they expected this to be a setting per CurveMapping. This change will move the option from `Curve` to `CurveMapping`. In order to support this the API had to be changed. BPY: CurveMap.evaluate is also moved to CurveMapping.evaluate what breaks Python API. Cycles has been updated but other add-ons have not. After release of 2.81 we can merge this to master and adapt the add-ons. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D6169
This commit is contained in:
@@ -2019,7 +2019,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, const uiWidgetColors *wcol, cons
|
||||
rctf line_range;
|
||||
|
||||
/* First curve point. */
|
||||
if ((cuma->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) {
|
||||
if ((cumap->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) {
|
||||
line_range.xmin = rect->xmin;
|
||||
line_range.ymin = rect->ymin + zoomy * (cmp[0].y - offsy);
|
||||
}
|
||||
@@ -2028,7 +2028,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, const uiWidgetColors *wcol, cons
|
||||
line_range.ymin = rect->ymin + zoomy * (cmp[0].y - offsy + cuma->ext_in[1]);
|
||||
}
|
||||
/* Last curve point. */
|
||||
if ((cuma->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) {
|
||||
if ((cumap->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) {
|
||||
line_range.xmax = rect->xmax;
|
||||
line_range.ymax = rect->ymin + zoomy * (cmp[CM_TABLE].y - offsy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user