I've done this. If there's a better way to handle the backing vector, please let me know. I couldn't find any other examples so I went this route. Thanks!
While testing this PR locally, I noticed that when selecting the first point, then using the operator, it does not create a new stroke for that point.
Figured out what I did wrong. Fixed now.
I was using array_utils::find_all_ranges
before, but it takes a value and only returns the ranges for indices equal to that value, so I had to have two ranges for selected and unselected points.…
I managed to get it down to one loop. I made a to_ranges function so I could have the one range and iterate only over that.
@PratikPB2123 I did want to combine the loops but wasn't sure how to do that. Your help is appreciated.