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:
Germano
2018-05-03 15:52:09 -03:00
parent 98ecdc4896
commit 7915cc7ddb

View File

@@ -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)