Cleanup: Remove outdated todo comment

There isn't really a reason why the sculpt and BLI
BVH trees have to have the same threading threshold.
This commit is contained in:
Hans Goudey
2025-05-12 21:52:44 -04:00
parent 7554126109
commit f83830409e

View File

@@ -49,10 +49,8 @@
#define MAX_TREETYPE 32
/* Setting zero so we can catch bugs in BLI_task/KDOPBVH.
* TODO(sergey): Deduplicate the limits with #blender::bke::pbvh::Tree from BKE.
*/
#ifndef NDEBUG
/* Setting zero so we can catch bugs in BLI_task/KDOPBVH. */
# define KDOPBVH_THREAD_LEAF_THRESHOLD 0
#else
# define KDOPBVH_THREAD_LEAF_THRESHOLD 1024
@@ -228,7 +226,7 @@ MINLINE axis_t max_axis(axis_t a, axis_t b)
static void node_minmax_init(const BVHTree *tree, BVHNode *node)
{
axis_t axis_iter;
float(*bv)[2] = (float(*)[2])node->bv;
float (*bv)[2] = (float (*)[2])node->bv;
for (axis_iter = tree->start_axis; axis_iter != tree->stop_axis; axis_iter++) {
bv[axis_iter][0] = FLT_MAX;