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:
authorMai Lavelle <mai.lavelle@gmail.com>2015-04-14 17:00:17 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-14 17:04:12 +0300
commitf1355d0b45cf8c0d170c9ad0fdf7f36ef8ac1585 (patch)
tree3279a048d135481ad395531bc6a0c2eff13ae96b /source/blender/makesrna/intern
parentf1e1ec2d8d43034ae36a5143ee57ce58756f115c (diff)
Second round of hair random rotation limited to 180 degrees
This time roll back to originally discussed in the code review page approach with simply bumping UI range for the property. It's still not totally free from forward compatibility breaking (which is already broken comparing to previous release) but at least it'll keep files working inbetween of git blender versions in cases random factor was not set above 2.0. Differential Revision: https://developer.blender.org/D1214
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_particle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 029563ad9c3..c0ce8f21870 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -2720,7 +2720,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "phase_factor_random", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "randphasefac");
- RNA_def_property_range(prop, 0.0f, 1.0f);
+ RNA_def_property_range(prop, 0.0f, 2.0f);
RNA_def_property_ui_text(prop, "Random Phase", "Randomize rotation around the chosen orientation axis");
RNA_def_property_update(prop, 0, "rna_Particle_reset");