Fix for curve widget hue gradient drawing incorrectly when zooming
This commit is contained in:
parent
23b682d594
commit
30361a7341
Notes:
blender-bot
2023-02-14 10:38:57 +01:00
Referenced by issue #40228, World multiple importance sample CUDA error Referenced by issue #40215, Bugs with Edge Flags and Booleans Referenced by issue #40185, Gradient background in hsv curve widget doesn't zoom properly + patch to fix
|
@ -1324,9 +1324,9 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, const rcti
|
|||
float col[3] = {0.0f, 0.0f, 0.0f}; /* dummy arg */
|
||||
|
||||
grid.xmin = rect->xmin + zoomx * (-offsx);
|
||||
grid.xmax = rect->xmax + zoomx * (-offsx);
|
||||
grid.xmax = grid.xmin + zoomx;
|
||||
grid.ymin = rect->ymin + zoomy * (-offsy);
|
||||
grid.ymax = rect->ymax + zoomy * (-offsy);
|
||||
grid.ymax = grid.ymin + zoomy;
|
||||
|
||||
ui_draw_gradient(&grid, col, UI_GRAD_H, 1.0f);
|
||||
|
||||
|
|
Loading…
Reference in New Issue