diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-09-08 00:39:50 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-09-08 00:39:50 +0300 |
commit | 4abbf6d82b190e1f67e180bf4330e51a53267144 (patch) | |
tree | 58f9b99826e14ffd0e6f541ebbf8e73adc260fce /source | |
parent | adbafe3b43d6131c74d96128b23ed24ae904d487 (diff) |
Fix T90967: Snapping not working with single strip
Even if `snap_targets` `SeqCollection` is empty, there can be static
snap points defined, so don't condition snapping on non-zero target
count.
Differential Revision: https://developer.blender.org/D12400
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_snap_sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap_sequencer.c b/source/blender/editors/transform/transform_snap_sequencer.c index a54149912a9..e82a00bcc77 100644 --- a/source/blender/editors/transform/transform_snap_sequencer.c +++ b/source/blender/editors/transform/transform_snap_sequencer.c @@ -260,7 +260,7 @@ TransSeqSnapData *transform_snap_sequencer_data_alloc(const TransInfo *t) SeqCollection *snap_sources = SEQ_query_selected_strips(seqbase); SeqCollection *snap_targets = query_snap_targets(t, snap_sources); - if (SEQ_collection_len(snap_sources) == 0 || SEQ_collection_len(snap_targets) == 0) { + if (SEQ_collection_len(snap_sources) == 0) { SEQ_collection_free(snap_targets); SEQ_collection_free(snap_sources); MEM_freeN(snap_data); |