[Bf-blender-cvs] [466c532] gooseberry: RNA: correct limits

Campbell Barton noreply at git.blender.org
Thu Feb 26 05:53:54 CET 2015


Commit: 466c532ba6b5cd4dd017d0a0833e37a7cfefd0e1
Author: Campbell Barton
Date:   Thu Feb 26 15:53:28 2015 +1100
Branches: gooseberry
https://developer.blender.org/rB466c532ba6b5cd4dd017d0a0833e37a7cfefd0e1

RNA: correct limits

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

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

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

diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 2d1a24c..fb01a40 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -2409,7 +2409,7 @@ static void rna_def_modifier_particleinstance(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "particle_system_index", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "psys");
-	RNA_def_property_range(prop, 1, INT_MAX);
+	RNA_def_property_range(prop, 1, SHRT_MAX);
 	RNA_def_property_ui_text(prop, "Particle System Number", "");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");




More information about the Bf-blender-cvs mailing list