Commit: 962f89d487da41107d7d1b1ccf7e720767359cd0
Author: Rohan Rathi
Date:   Tue Jul 10 22:21:28 2018 +0530
Branches: soc-2018-bevel
https://developer.blender.org/rB962f89d487da41107d7d1b1ccf7e720767359cd0

Changed default strength in harden

===================================================================

M       source/blender/makesrna/intern/rna_modifier.c
M       source/blender/modifiers/intern/MOD_bevel.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_modifier.c 
b/source/blender/makesrna/intern/rna_modifier.c
index c1b271e9214..70bd685dc56 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -3125,6 +3125,7 @@ static void rna_def_modifier_bevel(BlenderRNA *brna)
        RNA_def_property_update(prop, 0, "rna_Modifier_update");
 
        prop = RNA_def_property(srna, "hn_strength", PROP_FLOAT, PROP_NONE);
+       RNA_def_property_float_default(prop, 0.5f);
        RNA_def_property_range(prop, 0, 1);
        RNA_def_property_ui_range(prop, 0, 1, 1, 2);
        RNA_def_property_ui_text(prop, "Normal Strength", "Strength of 
calculated normal");
diff --git a/source/blender/modifiers/intern/MOD_bevel.c 
b/source/blender/modifiers/intern/MOD_bevel.c
index a61705646e6..3418922e812 100644
--- a/source/blender/modifiers/intern/MOD_bevel.c
+++ b/source/blender/modifiers/intern/MOD_bevel.c
@@ -70,6 +70,7 @@ static void initData(ModifierData *md)
        bmd->profile = 0.5f;
        bmd->bevel_angle = DEG2RADF(30.0f);
        bmd->defgrp_name[0] = '\0';
+       bmd->hn_strength = 0.5f;
 }
 
 static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to