From 98ecdc48968d0d233ee929103e33aa23ce9cb122 Mon Sep 17 00:00:00 2001 From: Germano Date: Thu, 3 May 2018 15:50:48 -0300 Subject: 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. --- source/blender/blenkernel/intern/dynamicpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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]; -- cgit v1.2.3 From 7915cc7ddbc221385e824f737ff7e48e5f52a1dd Mon Sep 17 00:00:00 2001 From: Germano Date: Thu, 3 May 2018 15:52:09 -0300 Subject: Particle Edit: Shape Cut: Create and use bvhtree with AABB hull. This bvhtree is only used for raycast. Currently the raycast does not benefit from general hull. --- source/blender/editors/physics/particle_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 50e3e20223d..2f18a0cd4c0 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -401,7 +401,7 @@ static bool PE_create_shape_tree(PEData *data, Object *shapeob) return false; } - return (bvhtree_from_mesh_looptri(&data->shape_bvh, dm, 0.0f, 4, 8) != NULL); + return (bvhtree_from_mesh_get(&data->shape_bvh, dm, BVHTREE_FROM_LOOPTRI, 4) != NULL); } static void PE_free_shape_tree(PEData *data) -- cgit v1.2.3