diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-18 07:07:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-18 07:08:12 +0300 |
commit | 2a9f000806667dc8ef945d8ae532529454911fe7 (patch) | |
tree | 370dcd11c102ce40df93d0c6e870d8bcf8abe15c /source | |
parent | a51fdd89fdd07015c0beb4cffec39f34e8a96d25 (diff) |
Cleanup: kdopbvh, only set parent nodes once
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 c1187fdd8bb..06e8ade68a2 100644 --- a/source/blender/blenlib/intern/BLI_kdopbvh.c +++ b/source/blender/blenlib/intern/BLI_kdopbvh.c @@ -856,9 +856,8 @@ static void non_recursive_bvh_div_nodes_task_cb( else { break; } - - parent->totnode = (char)(k + 1); } + parent->totnode = (char)k; } /** |