Clear active flag of GPencil layer when deselecting #106116

Closed
Pratik Borhade wants to merge 1 commits from PratikPB2123/blender:clear-gpencil-active-flag into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Active flag of Gpencil channel is not cleared when deselecting or
selecting channels of other types. This is causing problem for #104565

Active flag of Gpencil channel is not cleared when deselecting or selecting channels of other types. This is causing problem for #104565
Pratik Borhade added 1 commit 2023-03-24 18:07:56 +01:00
793272a0d7 Clear active flag of GPencil layer when deselecting
Active flag of Gpencil channel is not cleared when deselecting or
selecting channels of other types. This is causing problem for #104565
Pratik Borhade requested review from Sybren A. Stüvel 2023-03-24 18:08:16 +01:00
Sybren A. Stüvel added the
Module
Grease Pencil
Interest
Animation & Rigging
labels 2023-03-27 15:55:05 +02:00
Sybren A. Stüvel requested review from Amélie Fondevilla 2023-03-27 15:55:13 +02:00

Hi, I'm summing up here what was discussed in the chat.

It seems like this patch has important consequences on the grease pencil workflow : clicking on any non grease pencil channel in the dopesheet would result in all of the grease pencil objects having no active layer.
This is a problem, because all grease pencil object always need to have an active layer to draw on. Deselecting channels in the dopesheet should not change the active layer of the grease pencil objects.

So I think we've got to find another way of dealing with this.

Hi, I'm summing up here what was discussed in the chat. It seems like this patch has important consequences on the grease pencil workflow : clicking on any non grease pencil channel in the dopesheet would result in all of the grease pencil objects having no active layer. This is a problem, because all grease pencil object always need to have an active layer to draw on. Deselecting channels in the dopesheet should not change the active layer of the grease pencil objects. So I think we've got to find another way of dealing with this.
Author
Member

In further discussion, we came up with two possible solutions

  • Create a new flag GP_CHANNEL_ACTIVE to separate "active channel" and "active layer" of GPencil
  • Introduce a new pointer variable (active/active_index) that will reference the active channel of dopesheet
In further discussion, we came up with two possible solutions - Create a new flag `GP_CHANNEL_ACTIVE` to separate "active channel" and "active layer" of GPencil - Introduce a new pointer variable (`active`/`active_index`) that will reference the active channel of dopesheet
Pratik Borhade referenced this issue from a commit 2023-04-15 12:58:53 +02:00
Pratik Borhade closed this pull request 2023-07-11 07:16:28 +02:00

Pull request closed

Sign in to join this conversation.
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#106116
No description provided.