From c47029a710d522c4157e277d9cef8f72aca0ba6b Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 29 Oct 2004 18:47:58 +0000 Subject: [PATCH] Menus like 'edge' or 'game engine framing' could get flipped whilst the alignment of buttons was still active, resulting in garbish. --- source/blender/src/interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 0477f45be27..910398bb67b 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -4593,6 +4593,7 @@ void uiBlockSetDirection(uiBlock *block, int direction) block->direction= direction; } +/* this call escapes if there's alignment flags */ void uiBlockFlipOrder(uiBlock *block) { ListBase lb; @@ -4600,6 +4601,7 @@ void uiBlockFlipOrder(uiBlock *block) float centy, miny=10000, maxy= -10000; for(but= block->buttons.first; but; but= but->next) { + if(but->flag & UI_BUT_ALIGN) return; if(but->y1 < miny) miny= but->y1; if(but->y2 > maxy) maxy= but->y2; }