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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user