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
path: root/source
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-07-26 03:56:57 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-26 03:56:57 +0400
commit3abbc85ae09d8d35ddbd247bfe4446aa980ecab3 (patch)
treee58a1cb3d7423b37d1a18a5af7ee1c98f22f7423 /source
parent8655d65a7e08c91b75bae70373aeeb8bddcad0f1 (diff)
- commit some testing code for LetterRip's bit button conversion
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/interface.c8
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);
}
}