mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
Fix effect strips can not be selected
Caused by excluding effects from selection candidates. Exclude effects in `get_strip_handle_under_cursor()` instead.
This commit is contained in:
parent
a4d933e93e
commit
702948c592
1 changed files with 4 additions and 3 deletions
|
@ -1012,9 +1012,6 @@ static blender::Vector<Sequence *> mouseover_strips_sorted_get(const Scene *scen
|
|||
if (SEQ_time_right_handle_frame_get(scene, seq) < v2d->cur.xmin) {
|
||||
continue;
|
||||
}
|
||||
if (!ED_sequencer_can_select_handle(scene, seq, v2d)) {
|
||||
continue;
|
||||
}
|
||||
const rctf body = strip_clickable_area_get(scene, v2d, seq);
|
||||
if (!BLI_rctf_isect_pt_v(&body, mouse_co)) {
|
||||
continue;
|
||||
|
@ -1049,6 +1046,10 @@ static eSeqHandle get_strip_handle_under_cursor(const Scene *scene,
|
|||
const View2D *v2d,
|
||||
float mouse_co[2])
|
||||
{
|
||||
if (!ED_sequencer_can_select_handle(scene, seq, v2d)) {
|
||||
return SEQ_HANDLE_NONE;
|
||||
}
|
||||
|
||||
rctf body, left, right;
|
||||
strip_clickable_areas_get(scene, seq, v2d, &body, &left, &right);
|
||||
if (BLI_rctf_isect_pt_v(&left, mouse_co)) {
|
||||
|
|
Loading…
Reference in a new issue