Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-13 13:57:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-13 13:57:19 +0400
commit6254cc1c70b06acd60131b9ae3b0993e258e4e33 (patch)
tree0e818c5cc59d174e21e1142b20021a1784f9ef41 /source/blender/makesrna/intern/rna_modifier.c
parent143a654e6f5fdb1eca80b9b70f4a1470ed687551 (diff)
2 new bevel options for the operator and the modifier.
* even offset, uses same shell distance method as solidify to give even with beveled faces. * distance offset, this is mostly for compatibility with the modifier in trunk which uses the bevel width as a distance rather then a percentage. at the moment this is awkward for the operator since it makes percent act differently where the 0-1 range doesnt make sense. still need to bring back more options from trunks bevel modifier.
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 42926f72c4f..bd75285f8f9 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -2170,6 +2170,19 @@ static void rna_def_modifier_bevel(BlenderRNA *brna)
#endif
RNA_def_property_ui_text(prop, "Angle", "Angle above which to bevel edges");
RNA_def_property_update(prop, 0, "rna_Modifier_update");
+
+ /* BMESH_BRANCH ONLY */
+ prop= RNA_def_property(srna, "use_even_offset", PROP_BOOLEAN, PROP_NONE); /* name matches solidify */
+ RNA_def_property_boolean_sdna(prop, NULL, "flags", BME_BEVEL_EVEN);
+ RNA_def_property_ui_text(prop, "Even", "Use even bevel distance correction");
+ RNA_def_property_update(prop, 0, "rna_Modifier_update");
+ /* BMESH_BRANCH ONLY */
+ prop= RNA_def_property(srna, "use_distance_offset", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flags", BME_BEVEL_DIST);
+ RNA_def_property_ui_text(prop, "Distance", "Use the width as a distance in rather then a factor of the face size");
+ RNA_def_property_update(prop, 0, "rna_Modifier_update");
+ /* END BMESH_BRANCH ONLY */
+
}
static void rna_def_modifier_shrinkwrap(BlenderRNA *brna)