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:
authorCampbell Barton <ideasman42@gmail.com>2013-10-11 02:30:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-11 02:30:16 +0400
commit03602dc158de1a2fa7d88c91b0323aaaabb2c246 (patch)
tree0671cbea32cf28e2f646ed21be7784a6960163e6 /source/blender/blenlib/BLI_bitmap.h
parentecc5eb59c64ac8fd14ac3adc43d05499e88e81d9 (diff)
use BLI_bitmap for editmesh selection buffer to save some memory.
Diffstat (limited to 'source/blender/blenlib/BLI_bitmap.h')
-rw-r--r--source/blender/blenlib/BLI_bitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_bitmap.h b/source/blender/blenlib/BLI_bitmap.h
index bcdc97cdaa7..cf10fe53a5d 100644
--- a/source/blender/blenlib/BLI_bitmap.h
+++ b/source/blender/blenlib/BLI_bitmap.h
@@ -60,6 +60,9 @@ typedef unsigned int BLI_bitmap;
((_bitmap)[(_index) >> BLI_BITMAP_POWER] & \
(1u << ((_index) & BLI_BITMAP_MASK)))
+#define BLI_BITMAP_GET_BOOL(_bitmap, _index) \
+ (BLI_BITMAP_GET(_bitmap, _index) != 0)
+
/* set the value of a single bit at '_index' */
#define BLI_BITMAP_SET(_bitmap, _index) \
((_bitmap)[(_index) >> BLI_BITMAP_POWER] |= \