diff options
author | Cody Winchester <CodyWinch> | 2020-07-22 08:03:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-22 08:07:21 +0300 |
commit | 5c28955d3a018adf9986cc601837cde9fc011496 (patch) | |
tree | 2e73cf38fc6c6a0edb1e0fb17f161b1c5d4aa13c /source/blender/makesrna | |
parent | a197b810909b7d30faae9e84cfb12767d2e24a02 (diff) |
Modifiers: option to preserve custom normals for subsurf & multires
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 4d0d8cf1b6c..3d32e4695f5 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -1818,6 +1818,12 @@ static void rna_def_modifier_subsurf(BlenderRNA *brna) prop, "Use Creases", "Use mesh edge crease information to sharpen edges"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); + prop = RNA_def_property(srna, "use_custom_normals", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flags", eSubsurfModifierFlag_UseCustomNormals); + RNA_def_property_ui_text( + prop, "Use Custom Normals", "Interpolates existing custom normals to resulting mesh"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); + RNA_define_lib_overridable(false); } @@ -2019,6 +2025,12 @@ static void rna_def_modifier_multires(BlenderRNA *brna) prop, "Use Creases", "Use mesh edge crease information to sharpen edges"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); + prop = RNA_def_property(srna, "use_custom_normals", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flags", eMultiresModifierFlag_UseCustomNormals); + RNA_def_property_ui_text( + prop, "Use Custom Normals", "Interpolates existing custom normals to resulting mesh"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); + RNA_define_lib_overridable(false); } |