diff options
author | Germano Cavalcante <mano-wii> | 2022-04-06 00:44:52 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-06 01:32:56 +0300 |
commit | 684b95804e8fe8a78488b96b02285b2854809ff9 (patch) | |
tree | 3ff138ba11c32f3c0d112a6a0192c1f33a8d9af6 /source/blender/blenkernel/intern/mesh_remap.c | |
parent | bb7e3c2b563f752c0bc76631fd2804768c6d3847 (diff) |
Refactor: remove cache parameters from `bvhtree_from_` functions
The `BVHCacheType bvh_cache_type` parameter defines specific
`BVHTrees` that cannot be customized.
So it doesn't make sense to pass this value to any
`*bvhtree_from_[...]_ex` function as the `BVHTrees` created in these
cases are custom and cannot be saved in the cache.
This also resulted in a nice cleanup in the code.
Differential Revision: https://developer.blender.org/D14479
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_remap.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_remap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/mesh_remap.c b/source/blender/blenkernel/intern/mesh_remap.c index 406372f0113..8a4c48458bd 100644 --- a/source/blender/blenkernel/intern/mesh_remap.c +++ b/source/blender/blenkernel/intern/mesh_remap.c @@ -1516,9 +1516,7 @@ void BKE_mesh_remap_calc_loops_from_mesh(const int mode, 0.0, 2, 6, - 0, - NULL, - NULL); + false); } MEM_freeN(verts_active); @@ -1560,9 +1558,7 @@ void BKE_mesh_remap_calc_loops_from_mesh(const int mode, 0.0, 2, 6, - 0, - NULL, - NULL); + false); } MEM_freeN(looptri_active); |