diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-03 21:50:48 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-03 21:50:48 +0300 |
commit | 98ecdc48968d0d233ee929103e33aa23ce9cb122 (patch) | |
tree | 23ee35d6082e3a5793bd00425d054ace5e48ef59 /source/blender/blenkernel | |
parent | 0f217de4033f25d55e73d6aa8ab1020fed3f850c (diff) |
Dynamic Paint: Create and use bvhtree with AABB hull.
This bvhtree is only used for raycast and find_nearest which currently do not benefit from general hull.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/dynamicpaint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c index 3a70a4233b8..0b5cdae2507 100644 --- a/source/blender/blenkernel/intern/dynamicpaint.c +++ b/source/blender/blenkernel/intern/dynamicpaint.c @@ -4270,7 +4270,7 @@ static int dynamicPaint_paintMesh(DynamicPaintSurface *surface, /* check bounding box collision */ if (grid && meshBrush_boundsIntersect(&grid->grid_bounds, &mesh_bb, brush, brush_radius)) { /* Build a bvh tree from transformed vertices */ - if (bvhtree_from_mesh_looptri(&treeData, dm, 0.0f, 4, 8)) { + if (bvhtree_from_mesh_get(&treeData, dm, BVHTREE_FROM_LOOPTRI, 4)) { int c_index; int total_cells = grid->dim[0] * grid->dim[1] * grid->dim[2]; |