UI: Remove extra padding around curve widget
This commit removes the constant padding around to the left and right of the curve widget. The padding worked in screen space and didn't take UI scale/zoom into account. This makes the curve widget consistent with the more recently added curve profile widget used for bevel profiles. Differential Revision: https://developer.blender.org/D12883
This commit is contained in:
parent
d9e697fbbd
commit
45e16a6c96
|
@ -4831,9 +4831,6 @@ void ui_draw_but(const bContext *C, struct ARegion *region, uiStyle *style, uiBu
|
|||
break;
|
||||
|
||||
case UI_BTYPE_CURVE:
|
||||
/* do not draw right to edge of rect */
|
||||
rect->xmin += (0.2f * UI_UNIT_X);
|
||||
rect->xmax -= (0.2f * UI_UNIT_X);
|
||||
ui_draw_but_CURVE(region, but, &tui->wcol_regular, rect);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue