GPv3: "Select Linked" operator #108829

Merged
Falk David merged 5 commits from Chao-Li/blender:gpv3-select-linked into main 2023-06-11 17:35:54 +02:00
Contributor

This adds OPENCIL_OT_select_linked operator for the new grease pencil
data.

Resolves #108750.

This adds `OPENCIL_OT_select_linked` operator for the new grease pencil data. Resolves #108750.
Chao Li added 1 commit 2023-06-10 02:11:22 +02:00
16174b1747 GPv3: "Select Linked" operator
This adds `OPENCIL_OT_select_linked` operator for the new grease pencil
data.

See #108750
Iliya Katushenock added this to the Grease Pencil project 2023-06-10 02:14:36 +02:00
Iliya Katushenock requested review from Falk David 2023-06-10 02:14:52 +02:00
Falk David requested changes 2023-06-11 16:06:27 +02:00
Falk David left a comment
Member

Few comments on things that need to be deleted.

Few comments on things that need to be deleted.
@ -2031,2 +2031,4 @@
layout.separator()
layout.operator("grease_pencil.select_linked", text="Linked")
layout.operator_menu_enum("grease_pencil.select_grouped", "type", text="Grouped")
Member

There is no grease_pencil.select_grouped operator yet, so this line needs to be removed.

There is no `grease_pencil.select_grouped` operator yet, so this line needs to be removed.
filedescriptor marked this conversation as resolved
@ -64,1 +64,4 @@
static int select_linked_exec(bContext *C, wmOperator *op)
{
int action = RNA_enum_get(op->ptr, "action");
Member

There is no need for an action enum in this operator. Should be removed.

There is no need for an `action` enum in this operator. Should be removed.
filedescriptor marked this conversation as resolved
@ -65,0 +70,4 @@
GreasePencil &grease_pencil = *static_cast<GreasePencil *>(object->data);
grease_pencil.foreach_editable_drawing(
scene->r.cfra, [action](int /*drawing_index*/, GreasePencilDrawing &drawing) {
Member

[action] -> []

`[action]` -> `[]`
filedescriptor marked this conversation as resolved
Chao Li added 2 commits 2023-06-11 16:41:00 +02:00
Chao Li changed title from GPv3: "Select Linked" operator to WIP: GPv3: "Select Linked" operator 2023-06-11 16:59:21 +02:00
Falk David approved these changes 2023-06-11 17:05:19 +02:00
Falk David left a comment
Member

Thanks for the changes, looks good now.

Please merge your branch with main and resolve the conflicts (Should just be the new operator that was added, so keep both the new operator and move your changes below).

Thanks for the changes, looks good now. Please merge your branch with `main` and resolve the conflicts (Should just be the new operator that was added, so keep both the new operator and move your changes below).
Chao Li added 1 commit 2023-06-11 17:27:22 +02:00
Chao Li added 1 commit 2023-06-11 17:30:23 +02:00
Falk David changed title from WIP: GPv3: "Select Linked" operator to GPv3: "Select Linked" operator 2023-06-11 17:31:07 +02:00
Falk David merged commit 126bff3099 into main 2023-06-11 17:35:54 +02:00
Chao Li deleted branch gpv3-select-linked 2023-06-13 23:31:48 +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
2 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#108829
No description provided.