Change particle draw_size default and limits

Particle draw size can now no longer be less than 1px, and the default
value has been changed to 4.
This commit is contained in:
2017-05-19 17:19:20 +02:00
parent ef3c255457
commit c62bec8d99
2 changed files with 3 additions and 2 deletions

View File

@@ -3289,6 +3289,7 @@ static void default_particle_settings(ParticleSettings *part)
part->omat = 1;
part->use_modifier_stack = false;
part->draw_size = 4;
}

View File

@@ -2339,8 +2339,8 @@ static void rna_def_particle_settings(BlenderRNA *brna)
RNA_def_property_update(prop, 0, "rna_Particle_redo");
prop = RNA_def_property(srna, "draw_size", PROP_INT, PROP_PIXEL);
RNA_def_property_range(prop, 0, 1000);
RNA_def_property_ui_range(prop, 0, 100, 1, -1);
RNA_def_property_range(prop, 1, 1000);
RNA_def_property_ui_range(prop, 1, 100, 1, -1);
RNA_def_property_ui_text(prop, "Draw Size", "Size of particles on viewport in pixels (0=default)");
RNA_def_property_update(prop, 0, "rna_Particle_redo");