[Bf-blender-cvs] [15e8fbd5491] master: Fix compile error on gcc after last commit

Aaron Carlisle noreply at git.blender.org
Mon May 15 22:44:35 CEST 2017


Commit: 15e8fbd5491cf1ed492cd0b4c9750fa783348093
Author: Aaron Carlisle
Date:   Mon May 15 16:43:33 2017 -0400
Branches: master
https://developer.blender.org/rB15e8fbd5491cf1ed492cd0b4c9750fa783348093

Fix compile error on gcc after last commit

error: static assertion failed: "invalid limits"

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

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 ed1792c2ce7..3077a49c5cb 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -2364,7 +2364,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "hair_step", PROP_INT, PROP_NONE);
 	RNA_def_property_range(prop, 2, INT_MAX);
-	RNA_def_property_ui_range(prop, 2, 50, 1, -1);
+	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