Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c
| Show First 20 Lines • Show All 516 Lines • ▼ Show 20 Lines | #endif /* USE_DRAG_DETECT */ | ||||
| BLI_assert(retval == OPERATOR_PASS_THROUGH); | BLI_assert(retval == OPERATOR_PASS_THROUGH); | ||||
| return OPERATOR_PASS_THROUGH; | return OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| static int gizmo_tweak_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int gizmo_tweak_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| wmGizmoMap *gzmap = ar->gizmo_map; | wmGizmoMap *gzmap = ar->gizmo_map; | ||||
| wmGizmo *gz = gzmap->gzmap_context.highlight; | wmGizmo *gz = wm_gizmomap_highlight_get(gzmap); | ||||
| /* Needed for single click actions which don't enter modal state. */ | /* Needed for single click actions which don't enter modal state. */ | ||||
| WM_tooltip_clear(C, CTX_wm_window(C)); | WM_tooltip_clear(C, CTX_wm_window(C)); | ||||
| if (!gz) { | if (!gz) { | ||||
| /* wm_handlers_do_intern shouldn't let this happen */ | /* wm_handlers_do_intern shouldn't let this happen */ | ||||
| BLI_assert(0); | BLI_assert(0); | ||||
| return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH); | return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH); | ||||
| ▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines | |||||