diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-17 23:50:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-18 02:52:00 +0300 |
commit | 22931f2f9f35c2f227639a534ced53fece57a8a6 (patch) | |
tree | e3c335ff3b91d5ec6c34122f40a0abda73f500ad /source/blender/makesrna/intern/rna_modifier.c | |
parent | d6f9ba76a5cee06aa9ec795b4611216434a1a9cf (diff) |
BMesh: symmetry aware decimate
Support for decimating while maintaining symmetry on a single axis.
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index d9568141fee..251db029974 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -1550,6 +1550,17 @@ static void rna_def_modifier_decimate(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Triangulate", "Keep triangulated faces resulting from decimation (collapse only)"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); + prop = RNA_def_property(srna, "use_symmetry", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_DECIM_FLAG_SYMMETRY); + RNA_def_property_ui_text(prop, "Symmetry", "Maintain symmetry on an axis"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); + + prop = RNA_def_property(srna, "symmetry_axis", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_sdna(prop, NULL, "symmetry_axis"); + RNA_def_property_enum_items(prop, object_axis_unsigned_items); + RNA_def_property_ui_text(prop, "Axis", "Axis of symmetry"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); + prop = RNA_def_property(srna, "vertex_group_factor", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "defgrp_factor"); RNA_def_property_range(prop, 0, 1000); |