Commit: a621926694e7b955f2a75a18ba4ddfaaf01c1973
Author: Sergey Sharybin
Date:   Wed Jan 27 16:25:22 2016 +0100
Branches: master
https://developer.blender.org/rBa621926694e7b955f2a75a18ba4ddfaaf01c1973

Tracking: Remove unfinished code from automation experiments

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

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

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

diff --git a/source/blender/editors/space_clip/tracking_ops_track.c 
b/source/blender/editors/space_clip/tracking_ops_track.c
index f5fb415..368cbea 100644
--- a/source/blender/editors/space_clip/tracking_ops_track.c
+++ b/source/blender/editors/space_clip/tracking_ops_track.c
@@ -319,23 +319,11 @@ static int track_markers(bContext *C, wmOperator *op, 
bool use_job)
        TrackMarkersJob *tmj;
        ScrArea *sa = CTX_wm_area(C);
        SpaceClip *sc = CTX_wm_space_clip(C);
-       MovieClip *clip;
+       MovieClip *clip = ED_space_clip_get_clip(sc);
        wmJob *wm_job;
        bool backwards = RNA_boolean_get(op->ptr, "backwards");
        bool sequence = RNA_boolean_get(op->ptr, "sequence");
-       int framenr;
-
-       if (sc == NULL) {
-               /* TODO(sergey): Support clip for invoke as well. */
-               BKE_report(op->reports, RPT_ERROR,
-                          "Invoking this operator only supported from "
-                          "Clip Editor space");
-               return OPERATOR_CANCELLED;
-       }
-
-       clip = ED_space_clip_get_clip(sc);
-       BLI_assert(clip != NULL);
-       framenr = ED_space_clip_get_clip_frame_number(sc);
+       int framenr = ED_space_clip_get_clip_frame_number(sc);
 
        if (WM_jobs_test(CTX_wm_manager(C), sa, WM_JOB_TYPE_ANY)) {
                /* Only one tracking is allowed at a time. */
@@ -433,8 +421,6 @@ static int track_markers_modal(bContext *C,
 
 void CLIP_OT_track_markers(wmOperatorType *ot)
 {
-       PropertyRNA *prop;
-
        /* identifiers */
        ot->name = "Track Markers";
        ot->description = "Track selected markers";
@@ -455,9 +441,6 @@ void CLIP_OT_track_markers(wmOperatorType *ot)
        RNA_def_boolean(ot->srna, "sequence", 0, "Track Sequence",
                        "Track marker during image sequence rather than "
                        "single image");
-       prop = RNA_def_string(ot->srna, "clip", NULL, MAX_NAME, "Movie Clip",
-                             "Movie Clip to be tracked");
-       RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 }
 
 /********************** Refine track position operator *********************/

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to