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-03 20:26:39 +0300
committerGermano <germano.costa@ig.com.br>2018-05-03 20:26:39 +0300
commitac19483e632bd3e2388a6a0de2db753efe33a860 (patch)
treea7b7433b51a8501875ab142658749b3ded6b224d /source/blender/editors/physics
parenta5d0597b927d90c3621f8a40b0703cc158800fb8 (diff)
BKE bvhtree: Add `tree_type` parameter to `bvhtree_from_mesh_get`.
This will allow greater control of the bvhtrees that are obtained, and helps identify problems. It is also an additional step to unify the functions.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index f4334a2e872..1e204e97499 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -692,11 +692,11 @@ static bool remap_hair_emitter(Scene *scene, Object *ob, ParticleSystem *psys,
if (dm->getNumTessFaces(dm) != 0) {
mface = dm->getTessFaceArray(dm);
- bvhtree_from_mesh_get(&bvhtree, dm, BVHTREE_FROM_FACES);
+ bvhtree_from_mesh_get(&bvhtree, dm, BVHTREE_FROM_FACES, 2);
}
else if (dm->getNumEdges(dm) != 0) {
medge = dm->getEdgeArray(dm);
- bvhtree_from_mesh_get(&bvhtree, dm, BVHTREE_FROM_EDGES);
+ bvhtree_from_mesh_get(&bvhtree, dm, BVHTREE_FROM_EDGES, 2);
}
else {
dm->release(dm);