Swapped preview/timeline keymap and incorrect center measurement.
This commit is contained in:
Campbell Barton 2021-10-06 21:38:42 +11:00
parent 9ed19db539
commit 4ab8212e1a
Notes: blender-bot 2023-02-14 04:31:04 +01:00
Referenced by issue #91982, VSE: Shortcut keys for Pick Linked Time should be in Sequencer, not in Preview
2 changed files with 3 additions and 4 deletions

View File

@ -4647,7 +4647,7 @@ def _template_sequencer_generic_select(*, type, value, legacy):
)]
def _template_sequencer_timeline_select(*, type, value, legacy):
def _template_sequencer_preview_select(*, type, value, legacy):
return _template_sequencer_generic_select(
type=type, value=value, legacy=legacy,
) + [(
@ -4665,7 +4665,7 @@ def _template_sequencer_timeline_select(*, type, value, legacy):
)]
def _template_sequencer_preview_select(*, type, value, legacy):
def _template_sequencer_timeline_select(*, type, value, legacy):
return _template_sequencer_generic_select(
type=type, value=value, legacy=legacy,
) + [(

View File

@ -671,8 +671,7 @@ static Sequence *seq_select_seq_from_preview(const bContext *C,
SEQ_ITERATOR_FOREACH (seq, strips) {
float co[2];
SEQ_image_transform_origin_offset_pixelspace_get(scene, seq, co);
sub_v2_v2(co, mouseco_view);
const float center_dist_sq_test = len_squared_v2(co);
const float center_dist_sq_test = len_squared_v2v2(co, mouseco_view);
if ((seq_best == NULL) || (center_dist_sq_test < center_dist_sq_best)) {
seq_best = seq;
center_dist_sq_best = center_dist_sq_test;