diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-13 19:24:20 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:10 +0300 |
commit | 307c4a4df92cdde64b39e7fe28ab2db80355025f (patch) | |
tree | def751e2e620e0172bf3c386b1300f60366c5c13 /source/blender/makesrna | |
parent | 9bf763393603a987aa95033b2da78cea501d699b (diff) |
Another crappy approach to spirals on hairs, crazy expensive though.
Conflicts:
source/blender/blenkernel/intern/particle.c
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_particle.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c index c0814f1f322..9f16e6926a2 100644 --- a/source/blender/makesrna/intern/rna_particle.c +++ b/source/blender/makesrna/intern/rna_particle.c @@ -363,7 +363,7 @@ static void rna_ParticleSystem_co_hair(ParticleSystem *particlesystem, Object *o if (path_nbr) { cache = particlesystem->pathcache[particle_no]; - max_k = (int)cache->steps; + max_k = (int)cache->segments; } } @@ -372,10 +372,10 @@ static void rna_ParticleSystem_co_hair(ParticleSystem *particlesystem, Object *o if (path_nbr) { cache = particlesystem->childcache[particle_no - totpart]; - if (cache->steps < 0) + if (cache->segments < 0) max_k = 0; else - max_k = (int)cache->steps; + max_k = (int)cache->segments; } } @@ -2900,6 +2900,12 @@ static void rna_def_particle_settings(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Flatness", "How flat the hairs are"); RNA_def_property_update(prop, 0, "rna_Particle_redo_child"); + prop = RNA_def_property(srna, "kink_extra_steps", PROP_INT, PROP_NONE); + RNA_def_property_range(prop, 1, INT_MAX); + RNA_def_property_ui_range(prop, 1, 100, 1, -1); + RNA_def_property_ui_text(prop, "Extra Steps", "Extra steps for resolution of special kink features"); + RNA_def_property_update(prop, 0, "rna_Particle_redo_child"); + /* rough */ prop = RNA_def_property(srna, "roughness_1", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "rough1"); |