[Bf-blender-cvs] [41e70cf] master: Add meaningful default for SimpleDeform modifier's angle prop.

Bastien Montagne noreply at git.blender.org
Wed Dec 11 22:15:50 CET 2013


Commit: 41e70cfb394fdf03c598388eeefc6553030a3754
Author: Bastien Montagne
Date:   Wed Dec 11 22:10:45 2013 +0100
http://developer.blender.org/rB41e70cfb394fdf03c598388eeefc6553030a3754

Add meaningful default for SimpleDeform modifier's angle prop.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index c6f97e1..7427d8d 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -2595,6 +2595,7 @@ static void rna_def_modifier_simpledeform(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE);
 	RNA_def_property_float_sdna(prop, NULL, "factor");
 	RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
+	RNA_def_property_float_default(prop, DEG2RADF(45.0f));
 	RNA_def_property_ui_range(prop, -10, 10, 1, 3);
 	RNA_def_property_ui_text(prop, "Angle", "Angle of deformation");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
diff --git a/source/blender/modifiers/intern/MOD_simpledeform.c b/source/blender/modifiers/intern/MOD_simpledeform.c
index d260312..3c1f15a 100644
--- a/source/blender/modifiers/intern/MOD_simpledeform.c
+++ b/source/blender/modifiers/intern/MOD_simpledeform.c
@@ -248,7 +248,7 @@ static void initData(ModifierData *md)
 	smd->axis = 0;
 
 	smd->origin   =  NULL;
-	smd->factor   =  0.35f;
+	smd->factor   =  DEG2RADF(45.0f);
 	smd->limit[0] =  0.0f;
 	smd->limit[1] =  1.0f;
 }




More information about the Bf-blender-cvs mailing list