We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d23bd8 commit fb2afe3Copy full SHA for fb2afe3
src/threepp/objects/BVH.cpp
@@ -30,7 +30,7 @@ std::unique_ptr<BVH::BVHNode> BVH::buildNode(std::vector<int>& indices, int dept
30
}
31
32
// Stopping criteria: max depth reached or few enough triangles
33
- if (depth >= maxSubdivisions || indices.size() <= maxTrianglesPerNode) {
+ if (depth >= maxSubdivisions || static_cast<int>(indices.size()) <= maxTrianglesPerNode) {
34
node->triangleIndices = indices;
35
return node;
36
0 commit comments