Fix potential usage of wrong track when setting axis for scene orientation
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 23 Sep 2013 08:04:55 +0000 (08:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 23 Sep 2013 08:04:55 +0000 (08:04 +0000)
source/blender/editors/space_clip/tracking_ops.c

index 7a6546053cd9c78c84e8515526437ec9cfd348e3..246ea7fe140ed5e89fe61db10924a6497f43133c 100644 (file)
@@ -2405,7 +2405,7 @@ static int set_axis_exec(bContext *C, wmOperator *op)
 
        track = tracksbase->first;
        while (track) {
-               if (TRACK_VIEW_SELECTED(sc, track))
+               if (TRACK_VIEW_SELECTED(sc, track) && (track->flag & TRACK_HAS_BUNDLE))
                        break;
 
                track = track->next;