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:
Bastien Montagne 2014-03-06 21:56:32 +01:00
parent 8a38d840e9
commit 571f184d35
Notes: blender-bot 2023-02-14 11:03:52 +01:00
Referenced by issue #39034, sculpt mode show brush.
Referenced by issue #39023, No motion blur with scaling object
Referenced by issue #39027, Click and dag "synchronized editing" on "Transform>Dimensions" parameter on 3D view properties shelf has strange behavior
Referenced by issue #39018, Node dirver bug in Material and Texture
Referenced by issue #39000, Align Objects Axis button is not redraw
1 changed files with 4 additions and 4 deletions

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;