From 027c0e0001497d3fdee6e7cf8b8b22a121785fb7 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Wed, 9 Oct 2024 15:40:15 +0800 Subject: [PATCH] update MANIFOLD_PAR guard --- src/collider.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/collider.h b/src/collider.h index 526878841..5cc570408 100644 --- a/src/collider.h +++ b/src/collider.h @@ -23,7 +23,7 @@ #include #endif -#ifdef MANIFOLD_PAR +#if (MANIFOLD_PAR == 1) #include #endif @@ -217,7 +217,7 @@ struct SeqCollisionRecorder { SparseIndices& local() { return queryTri_; } }; -#ifdef MANIFOLD_PAR +#if (MANIFOLD_PAR == 1) template struct ParCollisionRecorder { tbb::combinable& store; @@ -327,7 +327,7 @@ class Collider { SparseIndices& queryTri) const { ZoneScoped; using collider_internal::FindCollision; -#ifdef MANIFOLD_PAR +#if (MANIFOLD_PAR == 1) if (queriesIn.size() > collider_internal::kSequentialThreshold) { tbb::combinable store; for_each_n(