diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-03 07:03:34 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-03 08:08:11 +0300 |
commit | cf5529af12e581ff1331f61a37a5dfef00f45ee0 (patch) | |
tree | bb3b3cb37951d8f256c8162a217cf55bc4a99d39 /source/blender/editors/transform | |
parent | e87082d8a70a0252ca76ce93b08c5bd65e29928b (diff) |
Cleanup: remove gizmo transform workaround which is no longer needed
Now gizmos forward the original event to transform so assuming an LMB
event is no longer needed.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index a7e2f616c9e..f8793e2a747 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1786,13 +1786,6 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve t->launch_event = event ? WM_userdef_event_type_from_keymap_type(event->type) : -1; t->is_launch_event_drag = event ? (event->val == KM_CLICK_DRAG) : false; - /* XXX Remove this when wm_operator_call_internal doesn't use window->eventstate - * (which can have type = 0) */ - /* For gizmo only, so assume LEFTMOUSE. */ - if (t->launch_event == 0) { - t->launch_event = LEFTMOUSE; - } - unit_m3(t->spacemtx); initTransInfo(C, t, op, event); |