GPv3: Select ends operator #108864

Merged
Falk David merged 6 commits from Chao-Li/blender:gpv3-select-ends into main 2023-06-13 13:02:56 +02:00
Contributor

This adds Select ends operators.
This resolves #108802.

This adds Select ends operators. This resolves #108802.
Chao Li added 1 commit 2023-06-11 19:20:57 +02:00
Hans Goudey reviewed 2023-06-12 04:30:25 +02:00
@ -175,0 +182,4 @@
grease_pencil.foreach_editable_drawing(
scene->r.cfra,
[amount_start, amount_end](int /*drawing_index*/, GreasePencilDrawing &drawing) {
Member

Just capture [&] in the lambda instead of these specific variables. There's no benefit to being specific here

Just capture `[&]` in the lambda instead of these specific variables. There's no benefit to being specific here
Chao-Li marked this conversation as resolved
@ -175,0 +183,4 @@
grease_pencil.foreach_editable_drawing(
scene->r.cfra,
[amount_start, amount_end](int /*drawing_index*/, GreasePencilDrawing &drawing) {
// TODO: Support different selection domains.
Member

Comments should use the /* */ style (https://wiki.blender.org/wiki/Style_Guide/C_Cpp#Comments)

But also this isn't really correct, right? There's no way to support this on the curve domain.

Comments should use the `/* */` style (https://wiki.blender.org/wiki/Style_Guide/C_Cpp#Comments) But also this isn't really correct, right? There's no way to support this on the curve domain.
Member

Correct, the comment should be removed.

Correct, the comment should be removed.
Chao-Li marked this conversation as resolved
Chao Li added 2 commits 2023-06-12 17:44:40 +02:00
Member

Thanks for the update. There's some inconsistency in the terminology here. I see first/start/front and last/back/end. I think it would be best to use "start" and "end" consistently in the commit title, description, code, and UI labels.

Thanks for the update. There's some inconsistency in the terminology here. I see first/start/front and last/back/end. I think it would be best to use "start" and "end" consistently in the commit title, description, code, and UI labels.
Chao Li changed title from GPv3: "Select First"/"Select Last" operators to GPv3: "Select Start"/"Select End" operators 2023-06-12 17:57:50 +02:00
Falk David approved these changes 2023-06-12 17:58:16 +02:00
Falk David left a comment
Member

I think it's good the way it is. Since the operator in the menu just selects the first/last point, I wouldn't change that.

I think it's good the way it is. Since the operator in the menu just selects the first/last point, I wouldn't change that.
@ -175,0 +197,4 @@
{
ot->name = "Select Ends";
ot->idname = "GREASE_PENCIL_OT_select_ends";
ot->description = "Select end points of curves";
Member

Select end points of strokes

`Select end points of strokes`
Chao-Li marked this conversation as resolved
Falk David changed title from GPv3: "Select Start"/"Select End" operators to GPv3: Select ends operator 2023-06-12 17:59:04 +02:00
Chao Li added 1 commit 2023-06-12 17:59:14 +02:00
Author
Contributor

Let me change UI back to "First" and "Last" since it's how it was. But I'll keep the rest consistent.

Let me change UI back to "First" and "Last" since it's how it was. But I'll keep the rest consistent.
Chao Li added 1 commit 2023-06-12 18:02:20 +02:00
Chao Li added 1 commit 2023-06-12 18:04:23 +02:00
Falk David merged commit e165dae3b8 into main 2023-06-13 13:02:56 +02:00
Chao Li deleted branch gpv3-select-ends 2023-06-13 23:31:43 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#108864
No description provided.