GPv3: Overlay: Show edit lines option #115739

Merged
Falk David merged 4 commits from casey-bianco-davis/blender:GPv3-Edit-Lines-Option into main 2023-12-07 11:42:17 +01:00

Adds option to only show edit mode lines overlay, and also adds overlay options panel.

Adds option to only show edit mode lines overlay, and also adds overlay options panel.
casey-bianco-davis added 1 commit 2023-12-04 05:07:57 +01:00
casey-bianco-davis added the
Module
Grease Pencil
label 2023-12-04 21:35:15 +01:00
casey-bianco-davis added this to the Grease Pencil project 2023-12-04 21:35:22 +01:00
Falk David requested changes 2023-12-05 12:06:21 +01:00
Falk David left a comment
Member

Thanks for this, added some comments.

Thanks for this, added some comments.
@ -33,2 +33,2 @@
grp = pd->edit_grease_pencil_wires_grp = DRW_shgroup_create(sh, psl->edit_grease_pencil_ps);
DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo);
const bool show_points = selection_domain == ATTR_DOMAIN_POINT;
const bool show_lines = v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES;
Member

(v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES) != 0

`(v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES) != 0`
casey-bianco-davis marked this conversation as resolved
@ -4909,1 +4910,4 @@
# ifdef WITH_GREASE_PENCIL_V3
/* show edit lines */
prop = RNA_def_property(srna, "use_grease_pencil_edit_lines", PROP_BOOLEAN, PROP_NONE);
Member

I don't think we need to duplicate this property. Using use_gpencil_edit_lines is fine.

I don't think we need to duplicate this property. Using `use_gpencil_edit_lines` is fine.
casey-bianco-davis marked this conversation as resolved
casey-bianco-davis requested review from Falk David 2023-12-06 01:31:21 +01:00
casey-bianco-davis added 2 commits 2023-12-06 01:31:26 +01:00
Falk David approved these changes 2023-12-06 10:39:51 +01:00
Falk David left a comment
Member

Just a small cleanup. Going to approve this.

Just a small cleanup. Going to approve this.
@ -21,6 +21,7 @@ void OVERLAY_edit_grease_pencil_cache_init(OVERLAY_Data *vedata)
const DRWContextState *draw_ctx = DRW_context_state_get();
const eAttrDomain selection_domain = ED_grease_pencil_selection_domain_get(
draw_ctx->scene->toolsettings);
View3D *v3d = draw_ctx->v3d;
Member

const View3D *v3d

`const View3D *v3d`
casey-bianco-davis marked this conversation as resolved
casey-bianco-davis added 1 commit 2023-12-07 06:02:37 +01:00
Falk David merged commit 4dcda1ec12 into main 2023-12-07 11:42:17 +01: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#115739
No description provided.