diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/DNA_tracking_types.h | 14 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_tracking.c | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_tracking_types.h b/source/blender/makesdna/DNA_tracking_types.h index 8ec9a260e18..5b6b706c83c 100644 --- a/source/blender/makesdna/DNA_tracking_types.h +++ b/source/blender/makesdna/DNA_tracking_types.h @@ -165,7 +165,8 @@ typedef struct MovieTrackingTrack { short frames_limit; /** Margin from frame boundaries. */ short margin; - /** Re-adjust every N frames. */ + /** Denotes which frame is used for the reference during tracking. + * An enumerator of `eTrackFrameMatch`. */ short pattern_match; /* tracking parameters */ @@ -268,7 +269,8 @@ typedef struct MovieTrackingSettings { short default_frames_limit; /** Margin from frame boundaries. */ short default_margin; - /** Re-adjust every N frames. */ + /** Denotes which frame is used for the reference during tracking. + * An enumerator of `eTrackFrameMatch`. */ short default_pattern_match; /** Default flags like color channels used by default. */ short default_flag; @@ -518,11 +520,11 @@ enum { TRACK_ALGORITHM_FLAG_USE_MASK = (1 << 3), }; -/* MovieTrackingTrack->adjframes */ -enum { +/* MovieTrackingTrack->pattern_match */ +typedef enum eTrackFrameMatch { TRACK_MATCH_KEYFRAME = 0, - TRACK_MATCH_PREVFRAME = 1, -}; + TRACK_MATCH_PREVIOS_FRAME = 1, +} eTrackFrameMatch; /* MovieTrackingSettings->flag */ enum { diff --git a/source/blender/makesrna/intern/rna_tracking.c b/source/blender/makesrna/intern/rna_tracking.c index f9597fdd7af..1870c660efd 100644 --- a/source/blender/makesrna/intern/rna_tracking.c +++ b/source/blender/makesrna/intern/rna_tracking.c @@ -856,7 +856,7 @@ static const EnumPropertyItem tracker_motion_model[] = { static const EnumPropertyItem pattern_match_items[] = { {TRACK_MATCH_KEYFRAME, "KEYFRAME", 0, "Keyframe", "Track pattern from keyframe to next frame"}, - {TRACK_MATCH_PREVFRAME, + {TRACK_MATCH_PREVIOS_FRAME, "PREV_FRAME", 0, "Previous frame", |