forked from bartvdbraak/blender
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.
This commit is contained in:
parent
14af65b3ef
commit
374188cdfe
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user