diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-25 13:16:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-25 13:16:49 +0300 |
commit | 8850775ce86fc2873f00bdd87aaec11f460c298a (patch) | |
tree | e46ecd0ba8c6187cc78350fd63e7e9175e5585d7 /source/blender/makesdna | |
parent | 4f8b7f44206264d38562bb92a7c73596ab7d3b6c (diff) |
Sequencer: Add option to use absolute mask animation time
This is handy for cases when mask is created on top of the edit and
used for tasks like color grading and other enhancement.
That was the main purpose of the masks which was totally broken in
6786ef6. Now it's possible to have masks created as both a part of
input movie roto process (which then better be re-mapped to the strip
timing) and as a grading tool (which should be using scene timing
for the animation).
Thanks artists from the Nieve for screaming about such a broken case.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_sequence_types.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index 0236f41c5b9..56112d2866f 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -308,7 +308,8 @@ typedef struct SequenceModifierData { char name[64]; /* MAX_NAME */ /* mask input, either sequence or mask ID */ - int mask_input_type, pad; + int mask_input_type; + int mask_time; struct Sequence *mask_sequence; struct Mask *mask_id; @@ -557,4 +558,11 @@ enum { SEQUENCE_MASK_INPUT_ID = 1 }; +enum { + /* Mask animation will be remapped relative to the strip start frame. */ + SEQUENCE_MASK_TIME_RELATIVE = 0, + /* Global (scene) frame number will be used to access the mask. */ + SEQUENCE_MASK_TIME_ABSOLUTE = 1, +}; + #endif /* __DNA_SEQUENCE_TYPES_H__ */ |