diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-22 12:22:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 12:22:59 +0100 |
commit | 2b287509eb742580d741a45f3aa88e7ad5de98ee (patch) | |
tree | 01d39df8361af661528e07103507dee1f7ca3f58 /thirdparty/meshoptimizer/clusterizer.cpp | |
parent | 78dbe4e3e47ce0d400acaaf224527f5d7b40a718 (diff) | |
parent | 2410f5de0313c00df13003349baefe714c61bd91 (diff) |
Merge pull request #55128 from akien-mga/meshoptimizer-f4c356d79
Diffstat (limited to 'thirdparty/meshoptimizer/clusterizer.cpp')
-rw-r--r-- | thirdparty/meshoptimizer/clusterizer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/thirdparty/meshoptimizer/clusterizer.cpp b/thirdparty/meshoptimizer/clusterizer.cpp index f8aad7b49c..b1f7b359c1 100644 --- a/thirdparty/meshoptimizer/clusterizer.cpp +++ b/thirdparty/meshoptimizer/clusterizer.cpp @@ -368,8 +368,7 @@ static size_t kdtreeBuild(size_t offset, KDNode* nodes, size_t node_count, const } // split axis is one where the variance is largest - unsigned int axis = vars[0] >= vars[1] && vars[0] >= vars[2] ? 0 : vars[1] >= vars[2] ? 1 - : 2; + unsigned int axis = vars[0] >= vars[1] && vars[0] >= vars[2] ? 0 : vars[1] >= vars[2] ? 1 : 2; float split = mean[axis]; size_t middle = kdtreePartition(indices, count, points, stride, axis, split); |