From 522bee3fc838c83b377d0e05fef8299a29ae5a16 Mon Sep 17 00:00:00 2001 From: Germano Date: Tue, 1 May 2018 10:03:28 -0300 Subject: Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type. Reviewed By: @campbellbarton Differential Revision: https://developer.blender.org/D3192 --- source/blender/modifiers/intern/MOD_surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/modifiers/intern/MOD_surface.c') diff --git a/source/blender/modifiers/intern/MOD_surface.c b/source/blender/modifiers/intern/MOD_surface.c index 7bb4c0b2fd1..389cffe85e7 100644 --- a/source/blender/modifiers/intern/MOD_surface.c +++ b/source/blender/modifiers/intern/MOD_surface.c @@ -159,9 +159,9 @@ static void deformVerts(ModifierData *md, Object *ob, surmd->bvhtree = MEM_callocN(sizeof(BVHTreeFromMesh), "BVHTreeFromMesh"); if (surmd->dm->getNumPolys(surmd->dm)) - bvhtree_from_mesh_looptri(surmd->bvhtree, surmd->dm, 0.0, 2, 6); + bvhtree_from_mesh_get(surmd->bvhtree, surmd->dm, BVHTREE_FROM_LOOPTRI); else - bvhtree_from_mesh_edges(surmd->bvhtree, surmd->dm, 0.0, 2, 6); + bvhtree_from_mesh_get(surmd->bvhtree, surmd->dm, BVHTREE_FROM_EDGES); } } -- cgit v1.2.3