Cleanup: redundant parenthesis
This commit is contained in:
@@ -4872,7 +4872,7 @@ static void ui_numedit_set_active(uiBut *but)
|
||||
|
||||
/* Don't change the cursor once pressed. */
|
||||
if ((but->flag & UI_SELECT) == 0) {
|
||||
if ((but->drawflag & (UI_BUT_ACTIVE_LEFT)) || (but->drawflag & (UI_BUT_ACTIVE_RIGHT))) {
|
||||
if ((but->drawflag & UI_BUT_ACTIVE_LEFT) || (but->drawflag & UI_BUT_ACTIVE_RIGHT)) {
|
||||
if (data->changed_cursor) {
|
||||
WM_cursor_modal_restore(data->window);
|
||||
data->changed_cursor = false;
|
||||
@@ -9947,7 +9947,7 @@ static int ui_handle_menu_event(bContext *C,
|
||||
if (ELEM(event->val, KM_PRESS, KM_DBL_CLICK)) {
|
||||
if ((is_parent_menu == false) && (U.uiflag & USER_MENUOPENAUTO) == 0) {
|
||||
/* for root menus, allow clicking to close */
|
||||
if (block->flag & (UI_BLOCK_OUT_1)) {
|
||||
if (block->flag & UI_BLOCK_OUT_1) {
|
||||
menu->menuretval = UI_RETURN_OK;
|
||||
}
|
||||
else {
|
||||
@@ -9955,7 +9955,7 @@ static int ui_handle_menu_event(bContext *C,
|
||||
}
|
||||
}
|
||||
else if (saferct && !BLI_rctf_isect_pt(&saferct->parent, event->x, event->y)) {
|
||||
if (block->flag & (UI_BLOCK_OUT_1)) {
|
||||
if (block->flag & UI_BLOCK_OUT_1) {
|
||||
menu->menuretval = UI_RETURN_OK;
|
||||
}
|
||||
else {
|
||||
@@ -10049,7 +10049,7 @@ static int ui_handle_menu_event(bContext *C,
|
||||
|
||||
/* strict check, and include the parent rect */
|
||||
if (!menu->dotowards && !saferct) {
|
||||
if (block->flag & (UI_BLOCK_OUT_1)) {
|
||||
if (block->flag & UI_BLOCK_OUT_1) {
|
||||
menu->menuretval = UI_RETURN_OK;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user