From ba1e9ae4733ae956331c7e8899f6939997205298 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 20 Nov 2019 16:12:32 -0500 Subject: Bevel: Custom Profile and CurveProfile Widget Custom profiles in bevel allows the profile curve to be controlled by manually placed control points. Orientation is regularized along groups of edges, and the 'pipe case' is updated. This commit includes many updates to comments and changed variable names as well. A 'cutoff' vertex mesh method is added to bevel in addition to the existing grid fill option for replacing vertices. The UI of the bevel modifier and tool are updated and unified. Also, a 'CurveProfile' widget is added to BKE for defining the profile in the interface, which may be useful in other situations. Many thanks to Howard, my mentor for this GSoC project. Reviewers: howardt, campbellbarton Differential Revision: https://developer.blender.org/D5516 --- source/blender/editors/interface/interface_widgets.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/interface/interface_widgets.c') diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 4cef9ace66e..7f7352517c8 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -4774,6 +4774,10 @@ void ui_draw_but(const bContext *C, ARegion *ar, uiStyle *style, uiBut *but, rct ui_draw_but_CURVE(ar, but, &tui->wcol_regular, rect); break; + case UI_BTYPE_CURVEPROFILE: + ui_draw_but_CURVEPROFILE(ar, but, &tui->wcol_regular, rect); + break; + case UI_BTYPE_PROGRESS_BAR: wt = widget_type(UI_WTYPE_PROGRESSBAR); fstyle = &style->widgetlabel; -- cgit v1.2.3