diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-03 21:52:09 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-03 21:52:09 +0300 |
commit | 7915cc7ddbc221385e824f737ff7e48e5f52a1dd (patch) | |
tree | 08b463d6a4c097a4139621d5529cc475d5bb104e | |
parent | 98ecdc48968d0d233ee929103e33aa23ce9cb122 (diff) |
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.
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |