Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorLuca Rood <dev@lucarood.com>2017-05-19 18:19:20 +0300
committerLuca Rood <dev@lucarood.com>2017-05-19 18:23:19 +0300
commitc62bec8d99bc17c861353cccf50e8b05ab0af973 (patch)
tree5986b23556943399139c02c2c7ec4be7b5d7cec7 /source
parentef3c2554575c820ace5bce594ef92b841abe7758 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/particle.c1
-rw-r--r--source/blender/makesrna/intern/rna_particle.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c
index 57e80c10a77..30ad808a650 100644
--- a/source/blender/blenkernel/intern/particle.c
+++ b/source/blender/blenkernel/intern/particle.c
@@ -3289,6 +3289,7 @@ static void default_particle_settings(ParticleSettings *part)
part->omat = 1;
part->use_modifier_stack = false;
+ part->draw_size = 4;
}
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 3c3d88c858f..067ce28fc59 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -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");