Skip to content

Commit

Permalink
Cleanup: use WM_event prefix for modal_tweak_exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed Jul 18, 2017
1 parent 7784cf3 commit 2174a21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/blender/editors/animation/anim_markers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion source/blender/windowmanager/WM_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion source/blender/windowmanager/intern/wm_event_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2174a21

Please sign in to comment.