diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-12-30 23:03:39 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-12-30 23:05:57 +0300 |
commit | 6472810c96357a620076fd8133754d956cc32773 (patch) | |
tree | fdf7fe13305eb5c77044b44aae1a503ab20eeb23 /source/blender/blenlib/intern/math_statistics.c | |
parent | 511e3c5d9d503b47cd5fb6fe48abeafde9fbff2d (diff) |
Grr, forgot those ones in previous commit...
Never believe QTCreator when it comes to finding all usages of a func, kids... grep ftw!
Diffstat (limited to 'source/blender/blenlib/intern/math_statistics.c')
-rw-r--r-- | source/blender/blenlib/intern/math_statistics.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/math_statistics.c b/source/blender/blenlib/intern/math_statistics.c index 784f6904160..97c224e0878 100644 --- a/source/blender/blenlib/intern/math_statistics.c +++ b/source/blender/blenlib/intern/math_statistics.c @@ -117,14 +117,8 @@ void BLI_covariance_m_vn_ex( .covfac = covfac, .n = n, .nbr_cos_vn = nbr_cos_vn, }; - if ((nbr_cos_vn * n * n) >= 10000) { - BLI_task_parallel_range_ex(0, n * n, &data, NULL, 0, covariance_m_vn_ex_task_cb, 0, false); - } - else { - for (int k = 0; k < n * n; k++) { - covariance_m_vn_ex_task_cb(&data, NULL, k); - } - } + BLI_task_parallel_range_ex( + 0, n * n, &data, NULL, 0, covariance_m_vn_ex_task_cb, (nbr_cos_vn * n * n) >= 10000, false); } /** |