diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-07-28 11:47:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-07-28 11:47:06 +0400 |
commit | 82ceab593cc122ef226bb945ff8e9719016ca525 (patch) | |
tree | d09d56c1700b9acdd1f195327805c1b6bdec48e4 /source/blender/makesrna | |
parent | 046d7590a6d4ed6a879a7080e572985a593e4eef (diff) |
Fix invalid RNA limits
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_particle.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index 5cbbb2bcabf..70da4ab0fa0 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -2236,12 +2236,12 @@ void rna_def_texpaint_slots(BlenderRNA *brna, StructRNA *srna) RNA_def_property_ui_text(prop, "Texture Slots", "Texture slots defining the mapping and influence of textures"); prop = RNA_def_property(srna, "paint_active_slot", PROP_INT, PROP_UNSIGNED); - RNA_def_property_range(prop, 0, INT_MAX); + RNA_def_property_range(prop, 0, SHRT_MAX); RNA_def_property_ui_text(prop, "Active Paint Texture Index", "Index of active texture paint slot"); RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING_LINKS, "rna_Material_active_paint_texture_index_update"); prop = RNA_def_property(srna, "paint_clone_slot", PROP_INT, PROP_UNSIGNED); - RNA_def_property_range(prop, 0, INT_MAX); + RNA_def_property_range(prop, 0, SHRT_MAX); RNA_def_property_ui_text(prop, "Clone Paint Texture Index", "Index of clone texture paint slot"); RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING_LINKS, NULL); } diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c index fe5bab383ac..0e56b184990 100644 --- a/source/blender/makesrna/intern/rna_particle.c +++ b/source/blender/makesrna/intern/rna_particle.c @@ -2439,7 +2439,7 @@ static void rna_def_particle_settings(BlenderRNA *brna) prop = RNA_def_property(srna, "simplify_refsize", PROP_INT, PROP_PIXEL); RNA_def_property_int_sdna(prop, NULL, "simplify_refsize"); - RNA_def_property_range(prop, 1, 32768); + RNA_def_property_range(prop, 1, SHRT_MAX); RNA_def_property_ui_text(prop, "Reference Size", "Reference size in pixels, after which simplification begins"); prop = RNA_def_property(srna, "simplify_rate", PROP_FLOAT, PROP_NONE); |