[Bf-blender-cvs] [883e342bdbd] master: Tracking: Fix possible numerical overflow

Sergey Sharybin noreply at git.blender.org
Tue Dec 19 13:03:03 CET 2017


Commit: 883e342bdbded4dbeab182fb39deef89f1c48adc
Author: Sergey Sharybin
Date:   Tue Dec 19 12:52:20 2017 +0100
Branches: master
https://developer.blender.org/rB883e342bdbded4dbeab182fb39deef89f1c48adc

Tracking: Fix possible numerical overflow

===================================================================

M	source/blender/editors/space_clip/clip_utils.c

===================================================================

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;
 	}



More information about the Bf-blender-cvs mailing list