Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_handlers.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 10,581 Lines • ▼ Show 20 Lines | (void)0 | ||||
| ATTR_FALLTHROUGH; | ATTR_FALLTHROUGH; | ||||
| CASE_NUM_TO_DIR(9, UI_RADIAL_NE); | CASE_NUM_TO_DIR(9, UI_RADIAL_NE); | ||||
| { | { | ||||
| uiBut *but = ui_block_pie_dir_activate(block, event, num_dir); | uiBut *but = ui_block_pie_dir_activate(block, event, num_dir); | ||||
| retval = ui_but_pie_button_activate(C, but, menu); | retval = ui_but_pie_button_activate(C, but, menu); | ||||
| break; | break; | ||||
| } | } | ||||
| #undef CASE_NUM_TO_DIR | #undef CASE_NUM_TO_DIR | ||||
| case WINDEACTIVATE: { | |||||
| /* If window focus is lost, exit the pie menu and release the pie event lock. | |||||
| * Prevents waiting for the pie key release if it was released outside of focus. */ | |||||
| retval = ui_but_pie_menu_apply(C, menu, NULL, true); | |||||
| CTX_wm_window(C)->pie_event_type_lock = EVENT_NONE; | |||||
| break; | |||||
| } | |||||
| default: | default: | ||||
| retval = ui_handle_menu_button(C, event, menu); | retval = ui_handle_menu_button(C, event, menu); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return retval; | return retval; | ||||
| ▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines | |||||