Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-12-15 11:47:24 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-12-19 15:53:12 +0300
commitd211c9aa0aaa68fe126ce632746b705903d03173 (patch)
treefbcc4533fc4a62d2c75d3626594fae039cf3ad2d /source/blender/blenkernel/intern/mesh_remap.c
parentdad260c164adf0f86853e2f8046916739fccaffd (diff)
BLI_bitmap: add functions operating on the whole bitmask.
There is no point having operations that iterate over the whole bit array as macros, so convert BLI_BITMAP_SET_ALL to a function. Also, add more utilities for copying and manipulating masks. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D4101
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_remap.c')
-rw-r--r--source/blender/blenkernel/intern/mesh_remap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_remap.c b/source/blender/blenkernel/intern/mesh_remap.c
index bdf5b3fddcc..85b09848a72 100644
--- a/source/blender/blenkernel/intern/mesh_remap.c
+++ b/source/blender/blenkernel/intern/mesh_remap.c
@@ -1336,7 +1336,7 @@ void BKE_mesh_remap_calc_loops_from_mesh(
for (tindex = 0; tindex < num_trees; tindex++) {
MeshElemMap *isld = island_store.islands[tindex];
int num_verts_active = 0;
- BLI_BITMAP_SET_ALL(verts_active, false, (size_t)num_verts_src);
+ BLI_bitmap_set_all(verts_active, false, (size_t)num_verts_src);
for (i = 0; i < isld->count; i++) {
mp_src = &polys_src[isld->indices[i]];
for (lidx_src = mp_src->loopstart; lidx_src < mp_src->loopstart + mp_src->totloop; lidx_src++) {
@@ -1370,7 +1370,7 @@ void BKE_mesh_remap_calc_loops_from_mesh(
for (tindex = 0; tindex < num_trees; tindex++) {
int num_looptri_active = 0;
- BLI_BITMAP_SET_ALL(looptri_active, false, (size_t)num_looptri_src);
+ BLI_bitmap_set_all(looptri_active, false, (size_t)num_looptri_src);
for (i = 0; i < num_looptri_src; i++) {
mp_src = &polys_src[looptri_src[i].poly];
if (island_store.items_to_islands[mp_src->loopstart] == tindex) {