diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-01 16:03:28 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-01 16:03:28 +0300 |
commit | 522bee3fc838c83b377d0e05fef8299a29ae5a16 (patch) | |
tree | 6bfd84127fd6da9921b7d3e4136381e208900483 /source/blender/modifiers/intern/MOD_surfacedeform.c | |
parent | 2e98524b58a53f0d546e5f1e7d549d2f45815055 (diff) |
Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type.
Reviewed By: @campbellbarton
Differential Revision: https://developer.blender.org/D3192
Diffstat (limited to 'source/blender/modifiers/intern/MOD_surfacedeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_surfacedeform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_surfacedeform.c b/source/blender/modifiers/intern/MOD_surfacedeform.c index fc605dd48e1..5006fe4a6e0 100644 --- a/source/blender/modifiers/intern/MOD_surfacedeform.c +++ b/source/blender/modifiers/intern/MOD_surfacedeform.c @@ -960,7 +960,7 @@ static bool surfacedeformBind(SurfaceDeformModifierData *smd, float (*vertexCos) return false; } - bvhtree_from_mesh_looptri(&treeData, tdm, 0.0, 2, 6); + bvhtree_from_mesh_get(&treeData, tdm, BVHTREE_FROM_LOOPTRI); if (treeData.tree == NULL) { modifier_setError((ModifierData *)smd, "Out of memory"); freeAdjacencyMap(vert_edges, adj_array, edge_polys); |