Raise particle count limit for 2.8 release

Blender 2.8 features significant improvements in the creation of particles.
Removed hard limit and increased soft limit.

Patch by Gottfried Hofmann.
Differential Revision: https://developer.blender.org/D5120
This commit is contained in:
Sergey Sharybin 2019-07-09 17:43:24 +02:00
parent b77c01924a
commit 3f208ed927
1 changed files with 1 additions and 5 deletions

View File

@ -2822,11 +2822,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "count", PROP_INT, PROP_UNSIGNED);
RNA_def_property_int_sdna(prop, NULL, "totpart");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
/* This limit is for those freaks who have the machine power to handle it. */
/* 10M particles take around 2.2 Gb of memory / disk space in saved file and */
/* each cached frame takes around 0.5 Gb of memory / disk space depending on cache mode. */
RNA_def_property_range(prop, 0, 10000000);
RNA_def_property_ui_range(prop, 0, 100000, 1, -1);
RNA_def_property_ui_range(prop, 0, 1000000, 1, -1);
RNA_def_property_ui_text(prop, "Number", "Total number of particles");
RNA_def_property_update(prop, 0, "rna_Particle_reset");