diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-07-23 06:20:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-07-23 07:41:09 +0300 |
commit | 60822ec183a514f38f478ec3f3a167f59865f027 (patch) | |
tree | bd8187627cc1c304f96352e4eb1e121c93e0b898 /source/blender/modifiers/intern | |
parent | 717046ad2a41c5b7d23313c77eca6ffc9f7b8762 (diff) |
Use looptri for BVH raycast (simple cases)
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surface.c | 2 | ||||
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgproximity.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_surface.c b/source/blender/modifiers/intern/MOD_surface.c index 3d998f2d95a..abb652c3ea5 100644 --- a/source/blender/modifiers/intern/MOD_surface.c +++ b/source/blender/modifiers/intern/MOD_surface.c @@ -159,7 +159,7 @@ static void deformVerts(ModifierData *md, Object *ob, surmd->bvhtree = MEM_callocN(sizeof(BVHTreeFromMesh), "BVHTreeFromMesh"); if (surmd->dm->getNumTessFaces(surmd->dm)) - bvhtree_from_mesh_faces(surmd->bvhtree, surmd->dm, 0.0, 2, 6); + bvhtree_from_mesh_looptri(surmd->bvhtree, surmd->dm, 0.0, 2, 6); else bvhtree_from_mesh_edges(surmd->bvhtree, surmd->dm, 0.0, 2, 6); } diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.c b/source/blender/modifiers/intern/MOD_weightvgproximity.c index 8d71ddfceaf..08d7d77c74e 100644 --- a/source/blender/modifiers/intern/MOD_weightvgproximity.c +++ b/source/blender/modifiers/intern/MOD_weightvgproximity.c @@ -98,7 +98,7 @@ static void get_vert2geom_distance(int numVerts, float (*v_cos)[3], } if (dist_f) { /* Create a bvh-tree of the given target's faces. */ - bvhtree_from_mesh_faces(&treeData_f, target, 0.0, 2, 6); + bvhtree_from_mesh_looptri(&treeData_f, target, 0.0, 2, 6); if (treeData_f.tree == NULL) { OUT_OF_MEMORY(); return; |