Sietse Brouwer SietseB
  • Joined on 2023-02-08
Sietse Brouwer commented on pull request blender/blender#109221 2023-07-13 01:20:50 +02:00
GPv3: Segment selection support for all relevant selection operators

In my new commit I've:

  • Handled all the code review remarks. Except for the one I commented on just now.
  • Added segment support for the circle select operator.
  • Added automatic conversion of…
Sietse Brouwer commented on pull request blender/blender#109221 2023-07-13 01:16:09 +02:00
GPv3: Segment selection support for all relevant selection operators

I'm afraid I have to reopen this discussion. A problem with the IndexMask solution is that it returns affected points, but for an efficient segment expansion you only want to inspect the…

Sietse Brouwer pushed to gp3-select-segments at SietseB/blender 2023-07-12 23:23:11 +02:00
ce1172e76a Code review changes and circle select support
8035a9b640 Merge branch 'main' into gp3-select-segments
84c8c331b4 Fix: Complier error
157f1dfc81 Cleanup: make format
5f17e0c796 VSE: Optimize cache linking
Compare 625 commits »
Sietse Brouwer deleted branch gp3-select-modes-convert from SietseB/blender 2023-07-12 12:06:55 +02:00
Sietse Brouwer pushed to gp3-select-modes-convert at SietseB/blender 2023-07-11 19:13:01 +02:00
b07fbdd708 Cleanup: move WM notifier inside conditional
Sietse Brouwer pushed to gp3-select-modes-convert at SietseB/blender 2023-07-11 15:59:30 +02:00
7c8f6b850f Cleanup: merging two GP selection domain functions into one
Sietse Brouwer commented on pull request blender/blender#109964 2023-07-11 13:45:57 +02:00
GPv3: convert selection domain on curves when selection mode changes

I noticed an UX difference: in GP, when you have a few points on a curve selected and you switch to 'curve' mode, the entire curve is selected. In '3D' curves, the curve is only selected when…

Sietse Brouwer created pull request blender/blender#109964 2023-07-11 12:45:11 +02:00
GPv3: convert selection domain on curves when selection mode changes
Sietse Brouwer pushed to gp3-select-modes-convert at SietseB/blender 2023-07-11 12:34:19 +02:00
5aa298c41e GPv3: convert selection domain on curves when selection mode changes
7e24a0a2ec Fix invalid address-of operator (hidden by a cast)
7271ceb057 Fix memory leak when there are unexpectedly more than MAXSEQ strips
116861dc2f Cleanup: break early out of rna_SeqTimelineChannel_owner_get
0b5eb86e2c Cleanup: check the result of BLI_findindex against -1 instead of < 0
Compare 10 commits »
Sietse Brouwer created branch gp3-select-modes-convert in SietseB/blender 2023-07-11 12:34:18 +02:00
Sietse Brouwer commented on pull request blender/blender#109221 2023-06-23 18:29:01 +02:00
GPv3: Segment selection support for all relevant selection operators

Sounds like a good plan to me. And even better: you are already on it! ;-)

Sietse Brouwer commented on pull request blender/blender#109221 2023-06-23 13:08:35 +02:00
GPv3: Segment selection support for all relevant selection operators

@HooglyBoogly Thanks for the review! I learned a lot from it already. I replied to some of your remarks – the others I will just implement.

I know the algorithm is rather poor and scales…

Sietse Brouwer commented on pull request blender/blender#109221 2023-06-23 12:31:31 +02:00
GPv3: Segment selection support for all relevant selection operators

Yes, that would be great, when the operators return what they changed. Then I don't have to hack into these functions, which I don't like either. Modifying all the curves functions to support…

Sietse Brouwer commented on pull request blender/blender#109221 2023-06-23 12:00:02 +02:00
GPv3: Segment selection support for all relevant selection operators

Will do, thanks for the insights!

Sietse Brouwer commented on pull request blender/blender#109221 2023-06-23 11:56:53 +02:00
GPv3: Segment selection support for all relevant selection operators

I'll handle the first one.

Unfortunately, the second one isn't going to work. A drawing is just a layer, intersections can come from other layers to. So the 'project to 2d' can't be inside the…

Sietse Brouwer commented on pull request blender/blender#109221 2023-06-23 11:40:32 +02:00
GPv3: Segment selection support for all relevant selection operators

We have to ensure then that is selection domain is always correct. That's something for a separate PR, I guess. I made a task for it. @filedescriptor

Sietse Brouwer opened issue blender/blender#109280 2023-06-23 11:37:50 +02:00
Grease Pencil: ensure correct selection domain on editable curves
Sietse Brouwer pushed to gp3-select-segments at SietseB/blender 2023-06-22 17:45:54 +02:00
c3dd115096 Support for cyclic curves in segment selection
Sietse Brouwer commented on pull request blender/blender#109240 2023-06-22 15:08:39 +02:00
GPv3: Select Alternate

It's weird, but I noticed we can't use points.index_range(), because it always starts at 0. While points.first() gives the correct offset. So keeping ` for (int point_i = points.first(…

Sietse Brouwer commented on pull request blender/blender#109221 2023-06-22 14:50:01 +02:00
GPv3: Segment selection support for all relevant selection operators

I had a brainwave and added a Select Random method for segments with relative ease.