diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-03-07 00:56:32 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-03-07 01:03:11 +0400 |
commit | 571f184d35e1f68d7df271196c2a895511fdd5b9 (patch) | |
tree | a9cf3ad4c2e6edf1e9d541768f10fa65ac703909 /source | |
parent | 8a38d840e99be38a4827fefb3834c9704050e4a8 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 079b64f852c..24aa2389473 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -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; |