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:
authorGermano <germano.costa@ig.com.br>2018-05-01 16:03:28 +0300
committerGermano <germano.costa@ig.com.br>2018-05-01 16:03:28 +0300
commit522bee3fc838c83b377d0e05fef8299a29ae5a16 (patch)
tree6bfd84127fd6da9921b7d3e4136381e208900483 /source/blender/render/intern
parent2e98524b58a53f0d546e5f1e7d549d2f45815055 (diff)
Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type.
Reviewed By: @campbellbarton Differential Revision: https://developer.blender.org/D3192
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r--source/blender/render/intern/source/bake_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c
index 505af3c2fa8..7f7acceb5dd 100644
--- a/source/blender/render/intern/source/bake_api.c
+++ b/source/blender/render/intern/source/bake_api.c
@@ -526,7 +526,7 @@ bool RE_bake_pixels_populate_from_objects(
if (dm_highpoly[i]->getNumTessFaces(dm_highpoly[i]) != 0) {
/* Create a bvh-tree for each highpoly object */
- bvhtree_from_mesh_faces(&treeData[i], dm_highpoly[i], 0.0, 2, 6);
+ bvhtree_from_mesh_get(&treeData[i], dm_highpoly[i], BVHTREE_FROM_FACES);
if (treeData[i].tree == NULL) {
printf("Baking: out of memory while creating BHVTree for object \"%s\"\n", highpoly[i].ob->id.name + 2);