[Bf-blender-cvs] [12651aba03c] master: Fix hair_step is a short

Aaron Carlisle noreply at git.blender.org
Mon May 15 23:28:45 CEST 2017


Commit: 12651aba03c768797cd4bafee5b0e8732e3194c3
Author: Aaron Carlisle
Date:   Mon May 15 17:28:01 2017 -0400
Branches: master
https://developer.blender.org/rB12651aba03c768797cd4bafee5b0e8732e3194c3

Fix hair_step is a short

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

M	source/blender/makesrna/intern/rna_particle.c

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

diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 3077a49c5cb..3c3d88c858f 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -2363,7 +2363,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
 	RNA_def_property_ui_text(prop, "Render", "How many steps paths are rendered with (power of 2)");
 
 	prop = RNA_def_property(srna, "hair_step", PROP_INT, PROP_NONE);
-	RNA_def_property_range(prop, 2, INT_MAX);
+	RNA_def_property_range(prop, 2, SHRT_MAX);
 	RNA_def_property_ui_range(prop, 2, 50, 1, 1);
 	RNA_def_property_ui_text(prop, "Segments", "Number of hair segments");
 	RNA_def_property_update(prop, 0, "rna_Particle_reset");




More information about the Bf-blender-cvs mailing list