Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-18 12:42:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-18 12:42:58 +0300
commit6e40b2de7ae81653f4005fbcd159aae2687f6e8d (patch)
tree6fd952a74fbdad3707caf993c613777ad5b04315 /source/blender
parent1cf0930e895b38d2e6991c9f62fa44fa9c1cc326 (diff)
Fix operator execution resetting the cursor
Area and region are NULL in the context if the operator finishes.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index ad10475906d..74de77ee1c2 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1958,7 +1958,7 @@ static int wm_handler_operator_call(bContext *C, ListBase *handlers, wmEventHand
/* set cursor back to the default for the region */
wmWindow *win = CTX_wm_window(C);
WM_cursor_grab_disable(win, NULL);
- ED_region_cursor_set(win, CTX_wm_area(C), CTX_wm_region(C));
+ ED_region_cursor_set(win, area, region);
BLI_remlink(handlers, handler);
wm_event_free_handler(handler);