From 3abbc85ae09d8d35ddbd247bfe4446aa980ecab3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 25 Jul 2005 23:56:57 +0000 Subject: [PATCH] - commit some testing code for LetterRip's bit button conversion --- source/blender/src/interface.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 5c4843e8664..fa54d83260e 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -4612,6 +4612,14 @@ static uiBut *uiDefButBit(uiBlock *block, int type, int bit, int retval, char *s if (bitIdx==-1) { return NULL; } else { + if (type&BIT) { + int curIdx = type&31; + + if (curIdx!=bitIdx) { + printf("ERROR: button index mismatch! (Button: %s, Correct Index: %d, Given Index: %d)\n", str, bitIdx, curIdx); + } + } + return uiDefBut(block, type|BIT|bitIdx, retval, str, x1, y1, x2, y2, poin, min, max, a1, a2, tip); } }