diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-18 17:07:50 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-18 17:09:11 +0400 |
commit | 7aa86ec243f92cee6f5de040f989fc7779f0e5a1 (patch) | |
tree | ef1b67f4624271f9dae49c48ad2d38c97ec31e8c /source/blender/editors/space_clip/tracking_ops.c | |
parent | cbbc67a0b5759ef5153d9b18a825c42ad9a3792b (diff) |
Fix T38700: Plane track can't be adjust when select mouse is set to left
Diffstat (limited to 'source/blender/editors/space_clip/tracking_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index fab33dcb84c..6f44b47ed61 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -3865,6 +3865,7 @@ void CLIP_OT_create_plane_track(wmOperatorType *ot) /********************** Slide plane marker corner operator *********************/ typedef struct SlidePlaneMarkerData { + int event_type; MovieTrackingPlaneTrack *plane_track; MovieTrackingPlaneMarker *plane_marker; int width, height; @@ -3960,6 +3961,8 @@ static void *slide_plane_marker_customdata(bContext *C, const wmEvent *event) customdata = MEM_callocN(sizeof(SlidePlaneMarkerData), "slide plane marker data"); + customdata->event_type = event->type; + plane_marker = BKE_tracking_plane_marker_ensure(plane_track, framenr); customdata->plane_track = plane_track; @@ -4109,7 +4112,8 @@ static int slide_plane_marker_modal(bContext *C, wmOperator *op, const wmEvent * break; case LEFTMOUSE: - if (event->val == KM_RELEASE) { + case RIGHTMOUSE: + if (event->type == data->event_type && event->val == KM_RELEASE) { /* Marker is now keyframed. */ data->plane_marker->flag &= ~PLANE_MARKER_TRACKED; |