diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-26 03:56:57 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-26 03:56:57 +0400 |
commit | 3abbc85ae09d8d35ddbd247bfe4446aa980ecab3 (patch) | |
tree | e58a1cb3d7423b37d1a18a5af7ee1c98f22f7423 /source | |
parent | 8655d65a7e08c91b75bae70373aeeb8bddcad0f1 (diff) |
- commit some testing code for LetterRip's bit button conversion
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/interface.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } } |