Undid fix from matt to prevent tog button alignment, this is not
working that way... made UI look very bad (like layer buttons)

The new code has 'toggle' and 'option' button types, with the
latter being the new style, and first for icon rows, layers, etc.

Purpose is that RNA or py api would allow to distinguish.
This commit is contained in:
Ton Roosendaal
2009-05-20 14:47:48 +00:00
parent 0a13c162b1
commit d6f71875bd

View File

@@ -1987,7 +1987,7 @@ void uiBlockEndAlign(uiBlock *block)
int ui_but_can_align(uiBut *but)
{
return !ELEM3(but->type, LABEL, ROUNDBOX, TOG);
return !ELEM(but->type, LABEL, ROUNDBOX);
}
static void ui_block_do_align_but(uiBlock *block, uiBut *first, int nr)