diff --git a/app/generated_images/22_refactor.png b/app/generated_images/22_refactor.png index f3dfba0..cdadead 100644 Binary files a/app/generated_images/22_refactor.png and b/app/generated_images/22_refactor.png differ diff --git a/src/bvh.rs b/src/bvh.rs index 30b951b..862a7a6 100644 --- a/src/bvh.rs +++ b/src/bvh.rs @@ -46,7 +46,7 @@ impl BVHNode { } } } else { - objects.sort_by(|a, b| { + objects[start..end].sort_by(|a, b| { BVHNode::box_compare(&a, &b, axis) });