Blender Git Commit Log
Git Commits -> Revision baff05a
Revision baff05a by Hans Goudey (master) June 24, 2020, 15:50 (GMT) |
UI: Add Free Handle Types to CurveProfile Widget Under the hood the CurveProfile widget (used for bevel custom profiles) uses a bezier curve, but right now though it only supports two of the bezier curve handle types, vector and auto. This patch adds support for free handles and adds all of the logic for editing them. This is the first step to the ability to import and export curve objects in the widget. There's some code cleanup in curveprofile.c. Movement for handles and control points is abstracted to functions there rather than happening in interface_handlers.c. An "Apply Preset" button is also added, which solves a confusing issue where you apply a preset, then change the number of samples and the preset doesn't change. The button makes it clear that the preset needs to be reapplied. Reviewed By: Severin Differential Revision: https://developer.blender.org/D6470 |
Commit Details:
Full Hash: baff05ad1c156ca477375c440e2c5b92cad214e9
Parent Commit: ec7510b
Lines Changed: +501, -246
7 Modified Paths:
/source/blender/blenkernel/BKE_curveprofile.h (+16, -1) (Diff)
/source/blender/blenkernel/intern/curveprofile.c (+197, -74) (Diff)
/source/blender/editors/interface/interface_draw.c (+90, -23) (Diff)
/source/blender/editors/interface/interface_handlers.c (+89, -65) (Diff)
/source/blender/editors/interface/interface_templates.c (+65, -67) (Diff)
/source/blender/makesdna/DNA_curveprofile_types.h (+15, -5) (Diff)
/source/blender/makesrna/intern/rna_curveprofile.c (+29, -11) (Diff)
/source/blender/blenkernel/intern/curveprofile.c (+197, -74) (Diff)
/source/blender/editors/interface/interface_draw.c (+90, -23) (Diff)
/source/blender/editors/interface/interface_handlers.c (+89, -65) (Diff)
/source/blender/editors/interface/interface_templates.c (+65, -67) (Diff)
/source/blender/makesdna/DNA_curveprofile_types.h (+15, -5) (Diff)
/source/blender/makesrna/intern/rna_curveprofile.c (+29, -11) (Diff)