Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-03-18 07:07:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-03-18 07:08:12 +0300
commit2a9f000806667dc8ef945d8ae532529454911fe7 (patch)
tree370dcd11c102ce40df93d0c6e870d8bcf8abe15c /source/blender/blenlib/intern/BLI_kdopbvh.c
parenta51fdd89fdd07015c0beb4cffec39f34e8a96d25 (diff)
Cleanup: kdopbvh, only set parent nodes once
Diffstat (limited to 'source/blender/blenlib/intern/BLI_kdopbvh.c')
-rw-r--r--source/blender/blenlib/intern/BLI_kdopbvh.c3
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;
}
/**