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/makesrna/intern/rna_scene.c | |
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/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index b9bc7b2bbf5..4d3de4ed6e6 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -3307,6 +3307,12 @@ static void rna_def_tool_settings(BlenderRNA *brna) RNA_def_property_flag(prop, PROP_NEVER_NULL); RNA_def_property_struct_type(prop, "MeshStatVis"); RNA_def_property_ui_text(prop, "Mesh Statistics Visualization", NULL); + + /* CurveProfile */ + prop = RNA_def_property(srna, "custom_bevel_profile_preset", PROP_POINTER, PROP_NONE); + RNA_def_property_pointer_sdna(prop, NULL, "custom_bevel_profile_preset"); + RNA_def_property_struct_type(prop, "CurveProfile"); + RNA_def_property_ui_text(prop, "Curve Profile Widget", "Used for defining a profile's path"); } static void rna_def_unified_paint_settings(BlenderRNA *brna) |