From d5572eacc5958db38ac4a4a32eddb3a2cd24bf68 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 6 Mar 2020 16:22:28 +0100 Subject: Cleanup: Reduce context usage in UI functions Part of https://developer.blender.org/T74429. There's a chance that this causes some issues becaue in some cases we change from getting the window from context to getting it from somewhere else. --- source/blender/editors/mesh/editmesh_polybuild.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/mesh/editmesh_polybuild.c') diff --git a/source/blender/editors/mesh/editmesh_polybuild.c b/source/blender/editors/mesh/editmesh_polybuild.c index 08d513e43ac..c9438f43e04 100644 --- a/source/blender/editors/mesh/editmesh_polybuild.c +++ b/source/blender/editors/mesh/editmesh_polybuild.c @@ -162,7 +162,7 @@ static int edbm_polybuild_transform_at_cursor_invoke(bContext *C, } } BM_select_history_store(bm, ele_act); - WM_event_add_mousemove(C); + WM_event_add_mousemove(vc.win); return OPERATOR_FINISHED; } @@ -244,7 +244,7 @@ static int edbm_polybuild_delete_at_cursor_invoke(bContext *C, ED_object_base_activate(C, basact); } } - WM_event_add_mousemove(C); + WM_event_add_mousemove(vc.win); return OPERATOR_FINISHED; } else { @@ -411,7 +411,7 @@ static int edbm_polybuild_face_at_cursor_invoke(bContext *C, wmOperator *op, con } } - WM_event_add_mousemove(C); + WM_event_add_mousemove(vc.win); return OPERATOR_FINISHED; } @@ -495,7 +495,7 @@ static int edbm_polybuild_split_at_cursor_invoke(bContext *C, EDBM_mesh_normals_update(em); EDBM_update_generic(vc.obedit->data, true, true); - WM_event_add_mousemove(C); + WM_event_add_mousemove(vc.win); if (vc.view_layer->basact != basact) { ED_object_base_activate(C, basact); @@ -592,7 +592,7 @@ static int edbm_polybuild_dissolve_at_cursor_invoke(bContext *C, ED_object_base_activate(C, basact); } - WM_event_add_mousemove(C); + WM_event_add_mousemove(vc.win); return OPERATOR_FINISHED; } -- cgit v1.2.3