[Bf-blender-cvs] [571f184] master: Fix T39000: Align Objects Axis button is not redraw.
Bastien Montagne
noreply at git.blender.org
Thu Mar 6 22:09:40 CET 2014
Commit: 571f184d35e1f68d7df271196c2a895511fdd5b9
Author: Bastien Montagne
Date: Thu Mar 6 21:56:32 2014 +0100
https://developer.blender.org/rB571f184d35e1f68d7df271196c2a895511fdd5b9
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.
===================================================================
M source/blender/editors/interface/interface_handlers.c
===================================================================
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 079b64f..24aa238 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;
More information about the Bf-blender-cvs
mailing list