Cleanup: kdopbvh, only set parent nodes once
authorCampbell Barton <ideasman42@gmail.com>
Sun, 18 Mar 2018 04:07:14 +0000 (05:07 +0100)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 18 Mar 2018 04:08:12 +0000 (05:08 +0100)
source/blender/blenlib/intern/BLI_kdopbvh.c

index c1187fd..06e8ade 100644 (file)
@@ -856,9 +856,8 @@ static void non_recursive_bvh_div_nodes_task_cb(
                else {
                        break;
                }
                else {
                        break;
                }
-
-               parent->totnode = (char)(k + 1);
        }
        }
+       parent->totnode = (char)k;
 }
 
 /**
 }
 
 /**