diff options
author | Henrik Dick <weasel> | 2020-04-14 11:45:53 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-04-14 13:18:22 +0300 |
commit | 35b1cc806f76d427139cc0eef1cdd9ef96b671ad (patch) | |
tree | b6c2405a214ffb682bd43133234a35b9477e1de8 /source/blender/makesrna | |
parent | b07e8a24f5c69578c5ccae31848bb0f51fd18700 (diff) |
Improve Solidify/Bevel Modifier cooperation
Adds a slider to solidify which allows the user to add bevel weight on the outside
or remove bevel weight from the inside.
Also includes a very small improvment for working with subsurface modifier where
the rim edge in complex solidify will now also have a chance to get a crease if
there is only two adjacent edges.
Differential Revision: https://developer.blender.org/D7334
Reviewing and minor cleanups: Bastien Montagne (@mont29).
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 5fc91622eba..5898bdd6b1a 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -4531,6 +4531,13 @@ static void rna_def_modifier_solidify(BlenderRNA *brna) RNA_def_property_ui_text( prop, "Merge Threshold", "Distance within which degenerated geometry is merged"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); + + prop = RNA_def_property(srna, "bevel_convex", PROP_FLOAT, PROP_NONE); + RNA_def_property_float_sdna(prop, NULL, "bevel_convex"); + RNA_def_property_range(prop, -1.0, 1.0); + RNA_def_property_ui_range(prop, -1.0, 1.0, 0.1, 3); + RNA_def_property_ui_text(prop, "Bevel Convex", "Edge bevel weight to be added to outside edges"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); } static void rna_def_modifier_screw(BlenderRNA *brna) |