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:
Leon Leno 2021-10-15 13:30:50 -05:00 committed by Hans Goudey
parent d9e697fbbd
commit 45e16a6c96
1 changed files with 0 additions and 3 deletions

View File

@ -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;