Fix #129671: GPv3: Cut tool not respecting material lock setting #129714

Merged
Falk David merged 2 commits from PratikPB2123/blender:129671-gpv3-trimlock into blender-v4.3-release 2024-11-04 14:04:33 +01:00
Member

Instead of looping over entire curve range, get editable stroke mask to
iterate on curves for finding out whether they intersect with lasso gesture.

Instead of looping over entire curve range, get editable stroke mask to iterate on curves for finding out whether they intersect with lasso gesture.
Pratik Borhade added 1 commit 2024-11-02 12:12:58 +01:00
Fix #129671: GPv3: Cut tool not respecting material lock setting
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
6cb581691b
Instead of looping over entire curve range, get editable stroke mask to
iterate on curves for finding out whether they intersect with lasso gesture.
Pratik Borhade requested review from Falk David 2024-11-02 12:13:18 +01:00
Pratik Borhade added the
Module
Grease Pencil
label 2024-11-02 12:13:32 +01:00
Pratik Borhade added this to the Grease Pencil project 2024-11-02 12:14:53 +01:00
Iliya Katushenock reviewed 2024-11-03 22:42:47 +01:00
@ -91,1 +91,3 @@
for (const int src_curve : src.curves_range()) {
IndexMaskMemory memory;
IndexMask editable_strokes = blender::ed::greasepencil::retrieve_editable_strokes(

Can be const.

Can be const.
Falk David requested changes 2024-11-04 10:30:06 +01:00
Dismissed
Falk David left a comment
Member

Small comment

Small comment
@ -92,0 +91,4 @@
IndexMaskMemory memory;
IndexMask editable_strokes = blender::ed::greasepencil::retrieve_editable_strokes(
const_cast<Object &>(obact), drawing, layer_index, memory);
Member

Instead of const_cast you can remove the const in the parameter. The value passed into the function is not const anyway.

Instead of `const_cast` you can remove the `const` in the parameter. The value passed into the function is not `const` anyway.
Member

@blender-bot build

@blender-bot build
Author
Member

I'll make the updates in few minutes. In the middle of making some other fix 😅

I'll make the updates in few minutes. In the middle of making some other fix 😅
Pratik Borhade changed target branch from main to blender-v4.3-release 2024-11-04 13:23:09 +01:00
Pratik Borhade added 1 commit 2024-11-04 13:25:25 +01:00
Falk David approved these changes 2024-11-04 13:57:02 +01:00
Falk David merged commit f6bd812c68 into blender-v4.3-release 2024-11-04 14:04:33 +01:00
Pratik Borhade deleted branch 129671-gpv3-trimlock 2024-11-04 14:27:30 +01:00
Author
Member

Thanks :)

Thanks :)
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
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#129714
No description provided.