Fix invalid RNA limits
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user