[Bf-blender-cvs] [7915cc7ddbc] master: Particle Edit: Shape Cut: Create and use bvhtree with AABB hull.
Germano
noreply at git.blender.org
Thu May 3 20:52:19 CEST 2018
Commit: 7915cc7ddbc221385e824f737ff7e48e5f52a1dd
Author: Germano
Date: Thu May 3 15:52:09 2018 -0300
Branches: master
https://developer.blender.org/rB7915cc7ddbc221385e824f737ff7e48e5f52a1dd
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.
===================================================================
M source/blender/editors/physics/particle_edit.c
===================================================================
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)
More information about the Bf-blender-cvs
mailing list