rename cursor setting functions to make modal set/restore more clearly related functions.
[blender-staging.git] / source / blender / editors / space_view3d / view3d_ruler.c
index b2f2d5849a4d078c5e75be8c87aaeec29d9df55a..bca162d156b1a5e0af8cdcdb606855ea21b35d58 100644 (file)
@@ -803,7 +803,7 @@ static int view3d_ruler_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSE
 
        view3d_ruler_header_update(sa);
 
-       WM_cursor_modal(win, BC_CROSSCURSOR);
+       WM_cursor_modal_set(win, BC_CROSSCURSOR);
        WM_event_add_modal_handler(C, op);
 
        return OPERATOR_RUNNING_MODAL;
@@ -1029,7 +1029,7 @@ static int view3d_ruler_modal(bContext *C, wmOperator *op, const wmEvent *event)
 
 exit:
        if (ELEM(exit_code, OPERATOR_FINISHED, OPERATOR_CANCELLED)) {
-               WM_cursor_restore(ruler_info->win);
+               WM_cursor_modal_restore(ruler_info->win);
 
                view3d_ruler_end(C, ruler_info);
                view3d_ruler_free(ruler_info);