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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/math_statistics.c')
-rw-r--r--source/blender/blenlib/intern/math_statistics.c10
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);
}
/**