Fix T39000: Align Objects Axis button is not redraw.

We have to apply button *before* checking others in the ROW, else changes are not propagated to them yet.
This commit is contained in:
2014-03-06 21:56:32 +01:00
parent 8a38d840e9
commit 571f184d35

View File

@@ -728,15 +728,15 @@ static void ui_apply_but_TOG(bContext *C, uiBut *but, uiHandleButtonData *data)
static void ui_apply_but_ROW(bContext *C, uiBlock *block, uiBut *but, uiHandleButtonData *data)
{
uiBut *bt;
ui_set_but_val(but, but->hardmax);
ui_apply_but_func(C, but);
/* states of other row buttons */
for (bt = block->buttons.first; bt; bt = bt->next)
if (bt != but && bt->poin == but->poin && ELEM(bt->type, ROW, LISTROW))
ui_check_but(bt);
ui_apply_but_func(C, but);
data->retval = but->retval;
data->applied = true;