Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/tracking_ops_track.c
| Context not available. | |||||
| bool sequence = RNA_boolean_get(op->ptr, "sequence"); | bool sequence = RNA_boolean_get(op->ptr, "sequence"); | ||||
| int 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)) { | if (WM_jobs_test(CTX_wm_manager(C), CTX_data_scene(C), WM_JOB_TYPE_ANY)) { | ||||
| /* Only one tracking is allowed at a time. */ | /* Only one tracking is allowed at a time. */ | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| Context not available. | |||||
| if (use_job && sequence) { | if (use_job && sequence) { | ||||
| wm_job = WM_jobs_get(CTX_wm_manager(C), | wm_job = WM_jobs_get(CTX_wm_manager(C), | ||||
| CTX_wm_window(C), | CTX_wm_window(C), | ||||
| sa, | CTX_data_scene(C), | ||||
| "Track Markers", | "Track Markers", | ||||
| WM_JOB_PROGRESS, | WM_JOB_PROGRESS, | ||||
| WM_JOB_TYPE_CLIP_TRACK_MARKERS); | WM_JOB_TYPE_CLIP_TRACK_MARKERS); | ||||
| Context not available. | |||||
| static int track_markers_modal(bContext *C, wmOperator *UNUSED(op), const wmEvent *event) | static int track_markers_modal(bContext *C, wmOperator *UNUSED(op), const wmEvent *event) | ||||
| { | { | ||||
| /* No running tracking, remove handler and pass through. */ | /* No running tracking, remove handler and pass through. */ | ||||
| if (0 == WM_jobs_test(CTX_wm_manager(C), CTX_wm_area(C), WM_JOB_TYPE_ANY)) { | if (0 == WM_jobs_test(CTX_wm_manager(C), CTX_data_scene(C), WM_JOB_TYPE_ANY)) { | ||||
| return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH; | return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| Context not available. | |||||