diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/editors/space_clip/tracking_ops_utils.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/editors/space_clip/tracking_ops_utils.c')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops_utils.c | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops_utils.c b/source/blender/editors/space_clip/tracking_ops_utils.c index 8974f6f7ee0..3970f1381bf 100644 --- a/source/blender/editors/space_clip/tracking_ops_utils.c +++ b/source/blender/editors/space_clip/tracking_ops_utils.c @@ -33,39 +33,35 @@ #include "WM_api.h" #include "WM_types.h" -#include "tracking_ops_intern.h" // own include +#include "tracking_ops_intern.h" // own include -void clip_tracking_clear_invisible_track_selection(SpaceClip *sc, - MovieClip *clip) +void clip_tracking_clear_invisible_track_selection(SpaceClip *sc, MovieClip *clip) { - ListBase *tracksbase = BKE_tracking_get_active_tracks(&clip->tracking); - int hidden = 0; - if ((sc->flag & SC_SHOW_MARKER_PATTERN) == 0) { - hidden |= TRACK_AREA_PAT; - } - if ((sc->flag & SC_SHOW_MARKER_SEARCH) == 0) { - hidden |= TRACK_AREA_SEARCH; - } - if (hidden) { - for (MovieTrackingTrack *track = tracksbase->first; - track != NULL; - track = track->next) - { - if ((track->flag & TRACK_HIDDEN) == 0) { - BKE_tracking_track_flag_clear(track, hidden, SELECT); - } - } - } + ListBase *tracksbase = BKE_tracking_get_active_tracks(&clip->tracking); + int hidden = 0; + if ((sc->flag & SC_SHOW_MARKER_PATTERN) == 0) { + hidden |= TRACK_AREA_PAT; + } + if ((sc->flag & SC_SHOW_MARKER_SEARCH) == 0) { + hidden |= TRACK_AREA_SEARCH; + } + if (hidden) { + for (MovieTrackingTrack *track = tracksbase->first; track != NULL; track = track->next) { + if ((track->flag & TRACK_HIDDEN) == 0) { + BKE_tracking_track_flag_clear(track, hidden, SELECT); + } + } + } } void clip_tracking_hide_cursor(bContext *C) { - wmWindow *win = CTX_wm_window(C); - WM_cursor_set(win, CURSOR_NONE); + wmWindow *win = CTX_wm_window(C); + WM_cursor_set(win, CURSOR_NONE); } void clip_tracking_show_cursor(bContext *C) { - wmWindow *win = CTX_wm_window(C); - WM_cursor_set(win, CURSOR_STD); + wmWindow *win = CTX_wm_window(C); + WM_cursor_set(win, CURSOR_STD); } |