diff options
author | Leon Leno <lone_noel> | 2021-10-15 21:30:50 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-15 21:30:50 +0300 |
commit | 45e16a6c966eb0383d24840fd0fcd1314435eb54 (patch) | |
tree | f135e4e362d65629a69ca7172b9787068d7dd1cc /source/blender | |
parent | d9e697fbbdea9128dc3b0b3318c49eb061a1c884 (diff) |
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
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 6727d812e1e..a26d409037d 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -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; |