Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_draw.c
| Show First 20 Lines • Show All 2,013 Lines • ▼ Show 20 Lines | #endif | ||||
| if (cuma->table == NULL) { | if (cuma->table == NULL) { | ||||
| BKE_curvemapping_changed(cumap, false); | BKE_curvemapping_changed(cumap, false); | ||||
| } | } | ||||
| CurveMapPoint *cmp = cuma->table; | CurveMapPoint *cmp = cuma->table; | ||||
| rctf line_range; | rctf line_range; | ||||
| /* First curve point. */ | /* First curve point. */ | ||||
| if ((cuma->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) { | if ((cumap->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) { | ||||
| line_range.xmin = rect->xmin; | line_range.xmin = rect->xmin; | ||||
| line_range.ymin = rect->ymin + zoomy * (cmp[0].y - offsy); | line_range.ymin = rect->ymin + zoomy * (cmp[0].y - offsy); | ||||
| } | } | ||||
| else { | else { | ||||
| line_range.xmin = rect->xmin + zoomx * (cmp[0].x - offsx + cuma->ext_in[0]); | line_range.xmin = rect->xmin + zoomx * (cmp[0].x - offsx + cuma->ext_in[0]); | ||||
| line_range.ymin = rect->ymin + zoomy * (cmp[0].y - offsy + cuma->ext_in[1]); | line_range.ymin = rect->ymin + zoomy * (cmp[0].y - offsy + cuma->ext_in[1]); | ||||
| } | } | ||||
| /* Last curve point. */ | /* Last curve point. */ | ||||
| if ((cuma->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) { | if ((cumap->flag & CUMA_EXTEND_EXTRAPOLATE) == 0) { | ||||
| line_range.xmax = rect->xmax; | line_range.xmax = rect->xmax; | ||||
| line_range.ymax = rect->ymin + zoomy * (cmp[CM_TABLE].y - offsy); | line_range.ymax = rect->ymin + zoomy * (cmp[CM_TABLE].y - offsy); | ||||
| } | } | ||||
| else { | else { | ||||
| line_range.xmax = rect->xmin + zoomx * (cmp[CM_TABLE].x - offsx - cuma->ext_out[0]); | line_range.xmax = rect->xmin + zoomx * (cmp[CM_TABLE].x - offsx - cuma->ext_out[0]); | ||||
| line_range.ymax = rect->ymin + zoomy * (cmp[CM_TABLE].y - offsy - cuma->ext_out[1]); | line_range.ymax = rect->ymin + zoomy * (cmp[CM_TABLE].y - offsy - cuma->ext_out[1]); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 643 Lines • Show Last 20 Lines | |||||