Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-12-19 14:52:20 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-12-19 14:52:20 +0300
commit883e342bdbded4dbeab182fb39deef89f1c48adc (patch)
tree7d5e0febd68d2bf15d93bb67b9582f44f236de77 /source
parent28970b6ed2a50d546c35673903cec5d7eddfe01f (diff)
Tracking: Fix possible numerical overflow
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_clip/clip_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/clip_utils.c b/source/blender/editors/space_clip/clip_utils.c
index 500ec90f011..ba04fa82a73 100644
--- a/source/blender/editors/space_clip/clip_utils.c
+++ b/source/blender/editors/space_clip/clip_utils.c
@@ -178,7 +178,8 @@ void clip_delete_track(bContext *C, MovieClip *clip, MovieTrackingTrack *track)
MovieTrackingTrack *act_track = BKE_tracking_track_get_active(tracking);
ListBase *tracksbase = BKE_tracking_get_active_tracks(tracking);
bool has_bundle = false;
- const bool used_for_stabilization = (track->flag & (TRACK_USE_2D_STAB | TRACK_USE_2D_STAB_ROT));
+ const bool used_for_stabilization =
+ (track->flag & (TRACK_USE_2D_STAB | TRACK_USE_2D_STAB_ROT)) != 0;
if (track == act_track) {
tracking->act_track = NULL;
}