Merge branch 'master' into blender2.8

This commit is contained in:
Germano
2018-05-03 15:54:26 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -4164,7 +4164,7 @@ static int dynamicPaint_paintMesh(struct Depsgraph *depsgraph, DynamicPaintSurfa
/* 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];

View File

@@ -410,7 +410,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)