Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 2,353 Lines • ▼ Show 20 Lines | bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *event, int mode) | ||||
| } | } | ||||
| t->options = options; | t->options = options; | ||||
| t->mode = mode; | t->mode = mode; | ||||
| /* Needed to translate tweak events to mouse buttons. */ | /* Needed to translate tweak events to mouse buttons. */ | ||||
| t->launch_event = event ? WM_userdef_event_type_from_keymap_type(event->type) : -1; | t->launch_event = event ? WM_userdef_event_type_from_keymap_type(event->type) : -1; | ||||
| t->is_launch_event_tweak = event ? ISTWEAK(event->type) : false; | |||||
| /* XXX Remove this when wm_operator_call_internal doesn't use window->eventstate | /* XXX Remove this when wm_operator_call_internal doesn't use window->eventstate | ||||
| * (which can have type = 0) */ | * (which can have type = 0) */ | ||||
| /* For gizmo only, so assume LEFTMOUSE. */ | /* For gizmo only, so assume LEFTMOUSE. */ | ||||
| if (t->launch_event == 0) { | if (t->launch_event == 0) { | ||||
| t->launch_event = LEFTMOUSE; | t->launch_event = LEFTMOUSE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 7,046 Lines • Show Last 20 Lines | |||||