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:
authorBrecht Van Lommel <brecht@blender.org>2022-03-22 03:13:28 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-03-22 03:30:19 +0300
commitfab14f78542ca040cc1606dbd33a4db6aea5976a (patch)
tree080478f6ef6b80c43d8529049b19ea75d3f47733 /source/blender/blenlib/intern/mesh_intersect.cc
parent976c91cd770f4323d4a5007e5bf444b8c701278b (diff)
Fix build when using WITH_TBB=OFF after recent changes
And wrap tbb::parallel_sort in blender namespace similar to other TBB functionality.
Diffstat (limited to 'source/blender/blenlib/intern/mesh_intersect.cc')
-rw-r--r--source/blender/blenlib/intern/mesh_intersect.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/source/blender/blenlib/intern/mesh_intersect.cc b/source/blender/blenlib/intern/mesh_intersect.cc
index 8f2c86556aa..96ae0750899 100644
--- a/source/blender/blenlib/intern/mesh_intersect.cc
+++ b/source/blender/blenlib/intern/mesh_intersect.cc
@@ -26,6 +26,7 @@
# include "BLI_math_vector.h"
# include "BLI_polyfill_2d.h"
# include "BLI_set.hh"
+# include "BLI_sort.hh"
# include "BLI_span.hh"
# include "BLI_task.h"
# include "BLI_task.hh"
@@ -37,10 +38,6 @@
# include "BLI_mesh_intersect.hh"
-# ifdef WITH_TBB
-# include <tbb/parallel_sort.h>
-# endif
-
// # define PERFDEBUG
namespace blender::meshintersect {
@@ -672,11 +669,7 @@ void IMesh::populate_vert(int max_verts)
* TODO: when all debugged, set fix_order = false. */
const bool fix_order = true;
if (fix_order) {
-# ifdef WITH_TBB
- tbb::parallel_sort(vert_.begin(), vert_.end(), [](const Vert *a, const Vert *b) {
-# else
- std::sort(vert_.begin(), vert_.end(), [](const Vert *a, const Vert *b) {
-# endif
+ blender::parallel_sort(vert_.begin(), vert_.end(), [](const Vert *a, const Vert *b) {
if (a->orig != NO_INDEX && b->orig != NO_INDEX) {
return a->orig < b->orig;
}