diff options
author | Hans Goudey <h.goudey@me.com> | 2019-11-21 00:12:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2019-11-21 00:25:28 +0300 |
commit | ba1e9ae4733ae956331c7e8899f6939997205298 (patch) | |
tree | 007362ed2c9ee4564b67404f552906d6e66848db /source/blender/makesdna/DNA_scene_types.h | |
parent | 8c6ce742391b2b8798143a4a2c2224ebbeb7f1ec (diff) |
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
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 2ca9e3b2ef7..e60b16453b2 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -33,7 +33,8 @@ extern "C" { #endif -#include "DNA_color_types.h" /* color management */ +#include "DNA_color_types.h" /* color management */ +#include "DNA_curveprofile_types.h" #include "DNA_customdata_types.h" /* Scene's runtime cddata masks. */ #include "DNA_vec_types.h" #include "DNA_listBase.h" @@ -50,6 +51,7 @@ struct Brush; struct Collection; struct ColorSpace; struct CurveMapping; +struct CurveProfile; struct CustomData_MeshMasks; struct Editing; struct Image; @@ -1515,6 +1517,11 @@ typedef struct ToolSettings { /* Normal Editing */ float normal_vector[3]; char _pad6[4]; + + /* Custom Curve Profile for bevel tool: + * Temporary until there is a proper preset system that stores the profiles or maybe stores + * entire bevel configurations. */ + struct CurveProfile *custom_bevel_profile_preset; } ToolSettings; /* *************************************************************** */ |