UI:
[blender-staging.git] / source / blender / editors / interface / interface_handlers.c
index 924d7df8c459e56cf25b4b0dc57d40acaa893385..5aa2cded642159b6e05a5e08e55ebad5a8de2aac 100644 (file)
@@ -2833,11 +2833,11 @@ static uiBut *ui_but_find_mouse_over(ARegion *ar, int x, int y)
                ui_window_to_block(ar, block, &mx, &my);
 
                for(but=block->buttons.first; but; but= but->next) {
-                       /* give precedence to already activated buttons */
                        if(but->flag & UI_NO_HILITE)
                                continue;
 
                        if(ui_but_contains_pt(but, mx, my))
+                               /* give precedence to already activated buttons */
                                if(!butover || (!butover->active && but->active))
                                        butover= but;
                }