[Bf-blender-cvs] [70e31d04fcf] temp-vse-preview-transform: Cleanup comments

Richard Antalik noreply at git.blender.org
Fri Sep 10 11:40:19 CEST 2021


Commit: 70e31d04fcf42f3c3ef705d60de89f6553779428
Author: Richard Antalik
Date:   Fri Sep 10 11:36:01 2021 +0200
Branches: temp-vse-preview-transform
https://developer.blender.org/rB70e31d04fcf42f3c3ef705d60de89f6553779428

Cleanup comments

===================================================================

M	source/blender/editors/space_sequencer/sequencer_select.c

===================================================================

diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index 9e94d3eddd6..595fba9d9b1 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -664,10 +664,10 @@ static bool seq_select_point_image_isect(const Scene *scene,
     img_y = scene->r.ysch;
   }
 
-  /* Set center. Both view and sequencer image 0 coord is in center of preview screen. */
+  /* Set center. Both view and sequencer image 0 coord is in center of preview area. */
   r_rctf.xmin = r_rctf.xmax = transform->xofs;
   r_rctf.ymin = r_rctf.ymax = transform->yofs;
-  /* Calculate rect */
+  /* Calculate rect for strip image. */
   r_rctf.xmin -= ((img_x / 2) - crop->left) * transform->scale_x;
   r_rctf.xmax += ((img_x / 2) - crop->right) * transform->scale_x;
   r_rctf.ymin -= ((img_y / 2) - crop->bottom) * transform->scale_y;
@@ -676,10 +676,8 @@ static bool seq_select_point_image_isect(const Scene *scene,
   return BLI_rctf_isect_pt(&r_rctf, point[0], point[1]);
 }
 
-/* Tl;dr: (XXX improve function and explain how it works) 
- * - get list of rendered seqs
- * - for each unselected if click is in image boundary, return seq
- * - else for each selected if click is in image boundary, return seq */
+/* Check if click happened on image which belongs to strip. Unselected strips are prioritized.
+ * Overlapping strips are not ordered. */
 static Sequence *seq_select_seq_from_preview(const bContext *C, const int mval[2])
 {
   Scene *scene = CTX_data_scene(C);



More information about the Bf-blender-cvs mailing list