diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-06-29 21:12:19 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-06-29 21:30:31 +0300 |
commit | fba9cd019f21f29bad1a6f3713370c5172dbc97f (patch) | |
tree | 5c42ca8e6f4d2f7051088306e99676d7e8b47b7b /source/blender/editors/transform/transform.h | |
parent | ea43ae4194e293599997f1d0d47430b462b4fd7f (diff) |
VSE: Improved Snapping
Change snapping behavior to snap strip edges when they are close to snap point.
Default behavior is, that each transformed strip is snapped to any other strip.
Implement snapping controls in sequencer tool settings. These controls include:
- Snapping on/off
- Ability to snap to playhead and strip hold offset points
- Filter snap points by excluding sound or muted strips
- Control snapping distance
Snapping controls are placed in timeline header similar to 3D viewport
Reviewed By: mano-wii
Differential Revision: https://developer.blender.org/D11646
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r-- | source/blender/editors/transform/transform.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index 4f97c3b6713..bd0ee1a51c6 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -335,7 +335,10 @@ typedef struct TransSnap { /** * Re-usable snap context data. */ - struct SnapObjectContext *object_context; + union { + struct SnapObjectContext *object_context; + struct TransSeqSnapData *seq_context; + }; } TransSnap; typedef struct TransCon { |