From 374188cdfe42d050886826fc8fad92756d866cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Tue, 13 Jan 2015 17:59:41 +0100 Subject: [PATCH] Disable the path length check for spiral kink mode. This test is terribly expensive for some reason and not necessary for for the spiral mode anyway. --- source/blender/blenkernel/intern/particle_child.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/particle_child.c b/source/blender/blenkernel/intern/particle_child.c index ae95b8f644d..9471274cd22 100644 --- a/source/blender/blenkernel/intern/particle_child.c +++ b/source/blender/blenkernel/intern/particle_child.c @@ -301,6 +301,7 @@ void psys_apply_child_modifiers(ParticleThreadContext *ctx, struct ListBase *mod struct ParticleSettings *part = ctx->sim.psys->part; struct Material *ma = ctx->ma; const bool draw_col_ma = (part->draw_col == PART_DRAW_COL_MAT); + const bool use_length_check = !ELEM(part->kink, PART_KINK_SPIRAL); ParticlePathModifier *mod; ParticleCacheKey *key; @@ -352,7 +353,7 @@ void psys_apply_child_modifiers(ParticleThreadContext *ctx, struct ListBase *mod sub_v3_v3v3(key->vel, key->co, (key-1)->co); } - if (k > 1) { + if (use_length_check && k > 1) { float dvec[3]; /* check if path needs to be cut before actual end of data points */ if (!check_path_length(k, keys, key, max_length, step_length, &cur_length, dvec))