diff options
Diffstat (limited to 'source/blender/blenlib/intern/BLI_kdopbvh.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_kdopbvh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c index 10e29e09827..3752751085f 100644 --- a/source/blender/blenlib/intern/BLI_kdopbvh.c +++ b/source/blender/blenlib/intern/BLI_kdopbvh.c @@ -860,14 +860,13 @@ static void non_recursive_bvh_div_nodes(BVHTree *tree, BVHNode *branches_array, BVHDivNodesData cb_data = { .tree = tree, .branches_array = branches_array, .leafs_array = leafs_array, .tree_type = tree_type, .tree_offset = tree_offset, .data = &data, - .first_of_next_level = 0, .depth = 0, .i = 0, + .first_of_next_level = 0, .depth = 0, .i = 0, }; /* Loop tree levels (log N) loops */ for (i = 1, depth = 1; i <= num_branches; i = i * tree_type + tree_offset, depth++) { const int first_of_next_level = i * tree_type + tree_offset; const int end_j = min_ii(first_of_next_level, num_branches + 1); /* index of last branch on this level */ - int j; /* Loop all branches on this level */ cb_data.first_of_next_level = first_of_next_level; |