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:
authorJoshua Leung <aligorith@gmail.com>2014-05-07 06:18:59 +0400
committerJoshua Leung <aligorith@gmail.com>2014-05-07 06:20:03 +0400
commit2679eaa712633969640584eae85c4f28cbbc6b7a (patch)
tree2ecfc72c16b7c0c805a0a02681f29f87aca9b5b6
parentaad0907644aad567b56e5baeffbf463acfa97af4 (diff)
Bugfix: Bend modifier's angle property has crazy limits
As reported by ZanQdo on IRC, the bend modifier's "angle" property had a range of +/- 572.95 degrees (equivalent to 10 radians). From the looks of things, this was simply something overlooked when doing degrees to radians conversions. Now it has a range of +/- 180 degrees.
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 91333af30b2..191d6d230db 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -2455,7 +2455,7 @@ static void rna_def_modifier_simpledeform(BlenderRNA *brna)
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_range(prop, -M_PI, M_PI, DEG2RAD(1), 3);
RNA_def_property_ui_text(prop, "Angle", "Angle of deformation");
RNA_def_property_update(prop, 0, "rna_Modifier_update");