diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:19:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:16 +0300 |
commit | 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 (patch) | |
tree | 64f69db4bf9d44f0a32d1c92b0714bf2dc98ff2d /source/blender/editors/space_clip/clip_dopesheet_ops.c | |
parent | bba60bb564cf5a16cfcac744d4ba82cf8eba3da9 (diff) |
Cleanup: style, use braces for editors
Diffstat (limited to 'source/blender/editors/space_clip/clip_dopesheet_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_dopesheet_ops.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/space_clip/clip_dopesheet_ops.c b/source/blender/editors/space_clip/clip_dopesheet_ops.c index e7f0f8c3fcc..785ced96b13 100644 --- a/source/blender/editors/space_clip/clip_dopesheet_ops.c +++ b/source/blender/editors/space_clip/clip_dopesheet_ops.c @@ -66,8 +66,9 @@ static bool dopesheet_select_channel_poll(bContext *C) { SpaceClip *sc = CTX_wm_space_clip(C); - if (sc && sc->clip) + if (sc && sc->clip) { return sc->view == SC_VIEW_DOPESHEET; + } return false; } @@ -93,10 +94,12 @@ static int dopesheet_select_channel_exec(bContext *C, wmOperator *op) MovieTrackingTrack *track = channel->track; if (current_channel_index == channel_index) { - if (extend) + if (extend) { track->flag ^= TRACK_DOPE_SEL; - else + } + else { track->flag |= TRACK_DOPE_SEL; + } if (track->flag & TRACK_DOPE_SEL) { tracking->act_track = track; @@ -106,8 +109,9 @@ static int dopesheet_select_channel_exec(bContext *C, wmOperator *op) BKE_tracking_track_deselect(track, TRACK_AREA_ALL); } } - else if (!extend) + else if (!extend) { track->flag &= ~TRACK_DOPE_SEL; + } current_channel_index++; } |