diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-31 10:15:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-31 10:15:45 +0300 |
commit | 7a702ba1d53587a324e45b4138ef27f0afcabd68 (patch) | |
tree | 6507c62c87b2d9e69a141a380eff6e941212d092 /source | |
parent | ac8105a72d5a385baac75f891dc11ac0b4c6b53e (diff) |
Cleanup: warning
Diffstat (limited to 'source')
-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; |