Fix part of #37087, brush curve becomes inverted when using the reset
curve button. From the bug report it also seems that positive slope curve presets are not always reset correctly. However I haven't seen any place where positive slope curve presets are used. This will fix the initial brush problem, however it might be good to investigate further if curve presets are to be used elsewhere. It looks like the issue is related to bezier curve calculation.
This commit is contained in:
parent
e7f1e1aed1
commit
4ae564bfa6
|
@ -1921,7 +1921,7 @@ static void curvemap_tools_dofunc(bContext *C, void *cumap_v, int event)
|
|||
case UICURVE_FUNC_RESET_NEG:
|
||||
case UICURVE_FUNC_RESET_POS: /* reset */
|
||||
curvemap_reset(cuma, &cumap->clipr, cumap->preset,
|
||||
(event == -1) ? CURVEMAP_SLOPE_NEGATIVE : CURVEMAP_SLOPE_POSITIVE);
|
||||
(event == UICURVE_FUNC_RESET_NEG) ? CURVEMAP_SLOPE_NEGATIVE : CURVEMAP_SLOPE_POSITIVE);
|
||||
curvemapping_changed(cumap, FALSE);
|
||||
break;
|
||||
case UICURVE_FUNC_RESET_VIEW:
|
||||
|
|
Loading…
Reference in New Issue