Fix #126587: GPv3: Select less fails if all points in stroke selected #126591

Merged
Falk David merged 3 commits from PratikPB2123/blender:126587-gpv3-select-less into main 2024-09-30 11:00:53 +02:00
Member

Handle the case separately when end points of strokes are selected.
Always deselect them (i.e. set "true", later array values are inverted)
when executing select less operation.

Handle the case separately when end points of strokes are selected. Always deselect them (i.e. set "true", later array values are inverted) when executing select less operation.
Pratik Borhade added 1 commit 2024-08-21 11:38:20 +02:00
Handle the case separately when end points of strokes are selected.
Always deselect them (i.e. set "true", later array values are inverted)
in case of select less opertion.
Pratik Borhade requested review from Falk David 2024-08-21 11:38:39 +02:00
Pratik Borhade requested review from Hans Goudey 2024-08-21 11:38:40 +02:00
Pratik Borhade added the
Module
Grease Pencil
label 2024-08-21 11:38:49 +02:00
Falk David reviewed 2024-08-23 12:52:38 +02:00
@ -628,3 +637,4 @@
}
/* Handle cyclic curve case. */
if (cyclic[curve_i]) {
if (selection_typed[points.first()] != selection_typed[points.last()]) {
Member

might as well use first_point and last_point here now that you store it in a variable.

might as well use `first_point` and `last_point` here now that you store it in a variable.
Author
Member

Can we do that in separate commit/PR? i.e. move first/last_point at the start of curves_mask.foreach_index then replace all instances of points.first()/last()
Just to avoid noise in this PR 😅

Can we do that in separate commit/PR? i.e. move `first/last_point` at the start of `curves_mask.foreach_index` then replace all instances of `points.first()/last()` Just to avoid noise in this PR 😅
Member

Sure :)

Sure :)
Author
Member

Delayed, here is the PR !127344 :)

Delayed, here is the PR !127344 :)
Pratik Borhade added 2 commits 2024-09-29 08:59:55 +02:00
Falk David approved these changes 2024-09-30 10:59:50 +02:00
Falk David left a comment
Member

Thanks.

Thanks.
Falk David merged commit 866ef5b468 into main 2024-09-30 11:00:53 +02:00
Pratik Borhade deleted branch 126587-gpv3-select-less 2024-09-30 12:59:43 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#126591
No description provided.