You can use ed::greasepencil::retrieve_editable_drawings_with_falloff()
here. That one calculates the multi_frame_falloff
factor for the drawings.
We are sure (because the segments intersect), but I changed it anyway. You never know, in a leap year with full moon... 😉
I skipped the use of BLI_lasso_is_edge_inside
for now, because it adds some complexity. Line segments touched by the lasso can be intersected by other curves.
Handling cases like:
![Intersecte…
@PratikPB2123 Making the pasted strokes selected, is probably easiest to set the .selection
state of the strokes/points on the clipboard, before joining the geometries. Then you don't have to…
@PratikPB2123 You are completely right. That's the mistake I made in the copy/paste code: I assumed there was always a .selection
attribute already on the strokes at the clipboard (since you…
const
in a few places
@PratikPB2123 Thanks! (And that's right, I don't have commit rights.)