Cleanup: use WM_event prefix for modal_tweak_exit
authorCampbell Barton <ideasman42@gmail.com>
Tue, 18 Jul 2017 08:09:26 +0000 (18:09 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 18 Jul 2017 08:09:26 +0000 (18:09 +1000)
source/blender/editors/animation/anim_markers.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_event_system.c

index aafd7ebb1f96f1bad637347eea49827cbf11163f..be01f8cbe692fe7ffc6ac534b635e458aabce397 100644 (file)
@@ -895,7 +895,7 @@ static int ed_marker_move_modal(bContext *C, wmOperator *op, const wmEvent *even
                        case PADENTER:
                        case LEFTMOUSE:
                        case MIDDLEMOUSE:
-                               if (WM_modal_tweak_exit(event, mm->event_type)) {
+                               if (WM_event_is_modal_tweak_exit(event, mm->event_type)) {
                                        ed_marker_move_exit(C, op);
                                        WM_event_add_notifier(C, NC_SCENE | ND_MARKERS, NULL);
                                        WM_event_add_notifier(C, NC_ANIMATION | ND_MARKERS, NULL);
index 461ed48efc103c0950def6718012e986c28f6369..a91c30c280750817255b640e859904fd9615b74d 100644 (file)
@@ -187,7 +187,7 @@ struct wmEventHandler *WM_event_add_dropbox_handler(ListBase *handlers, ListBase
 
                        /* mouse */
 void           WM_event_add_mousemove(struct bContext *C);
-bool        WM_modal_tweak_exit(const struct wmEvent *event, int tweak_event);
+bool           WM_event_is_modal_tweak_exit(const struct wmEvent *event, int tweak_event);
 bool           WM_event_is_absolute(const struct wmEvent *event);
 bool           WM_event_is_last_mousemove(const struct wmEvent *event);
 
index 6e14d3c03e59427db0df13ac931e731b4bfdf5e8..32f978ae891e948fb0a6000e60e623fa76c005e2 100644 (file)
@@ -2862,7 +2862,7 @@ void WM_event_add_mousemove(bContext *C)
 
 
 /* for modal callbacks, check configuration for how to interpret exit with tweaks  */
-bool WM_modal_tweak_exit(const wmEvent *event, int tweak_event)
+bool WM_event_is_modal_tweak_exit(const wmEvent *event, int tweak_event)
 {
        /* if the release-confirm userpref setting is enabled, 
         * tweak events can be canceled when mouse is released