From d211c9aa0aaa68fe126ce632746b705903d03173 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sat, 15 Dec 2018 11:47:24 +0300 Subject: 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 --- source/blender/windowmanager/intern/wm_files_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_files_link.c') diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index bc21276ff45..07ed7a8f59e 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -270,7 +270,7 @@ static void wm_link_do( if (new_id) { /* If the link is successful, clear item's libs 'todo' flags. * This avoids trying to link same item with other libraries to come. */ - BLI_BITMAP_SET_ALL(item->libraries, false, lapp_data->num_libraries); + BLI_bitmap_set_all(item->libraries, false, lapp_data->num_libraries); item->new_id = new_id; } } @@ -633,7 +633,7 @@ static void lib_relocate_do( /* Note that non-linkable IDs (like e.g. shapekeys) are also explicitly linked here... */ BLI_remlink(lbarray[lba_idx], id); item = wm_link_append_data_item_add(lapp_data, id->name + 2, idcode, id); - BLI_BITMAP_SET_ALL(item->libraries, true, lapp_data->num_libraries); + BLI_bitmap_set_all(item->libraries, true, lapp_data->num_libraries); #ifdef PRINT_DEBUG printf("\tdatablock to seek for: %s\n", id->name); -- cgit v1.2.3