From f1355d0b45cf8c0d170c9ad0fdf7f36ef8ac1585 Mon Sep 17 00:00:00 2001 From: Mai Lavelle Date: Tue, 14 Apr 2015 19:00:17 +0500 Subject: 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 --- source/blender/makesrna/intern/rna_particle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern') 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"); -- cgit v1.2.3