Code cleanup: use bool instead of short in motrack

This commit is contained in:
Sergey Sharybin 2014-03-31 15:24:23 +06:00
parent 5e4f789173
commit 8dc300ecba

@ -2340,8 +2340,8 @@ static void tracking_dopesheet_channels_calc(MovieTracking *tracking)
BKE_tracking_object_get_reconstruction(tracking, object); BKE_tracking_object_get_reconstruction(tracking, object);
ListBase *tracksbase = BKE_tracking_object_get_tracks(tracking, object); ListBase *tracksbase = BKE_tracking_object_get_tracks(tracking, object);
short sel_only = dopesheet->flag & TRACKING_DOPE_SELECTED_ONLY; bool sel_only = (dopesheet->flag & TRACKING_DOPE_SELECTED_ONLY) != 0;
short show_hidden = dopesheet->flag & TRACKING_DOPE_SHOW_HIDDEN; bool show_hidden = (dopesheet->flag & TRACKING_DOPE_SHOW_HIDDEN) != 0;
for (track = tracksbase->first; track; track = track->next) { for (track = tracksbase->first; track; track = track->next) {
MovieTrackingDopesheetChannel *channel; MovieTrackingDopesheetChannel *channel;