Regression: Eye icon visible twice in dope sheet for stroke objects #105009

Closed
opened 2023-02-21 09:29:19 +01:00 by Denis Briant · 5 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.24

Blender Version
Broken: version: 3.5.0 Beta, branch: blender-v3.5-release, commit date: 2023-02-16 21:59, hash: efc2e5134f5d

Introduced by 49ad91b5ab

Short description of error
in the dope sheet (and timeline) the eye icon is visible twice for stroke objects.

Exact steps for others to reproduce the error
this is only a problem seen with greace pencil keyframes.
In 3.4, the eye was visible on the right side, but if we look at other standard keyframe channels, it should be on the left side for consistency (but not twice ;).

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.24 **Blender Version** Broken: version: 3.5.0 Beta, branch: blender-v3.5-release, commit date: 2023-02-16 21:59, hash: `efc2e5134f5d` Introduced by 49ad91b5ab **Short description of error** in the dope sheet (and timeline) the eye icon is visible twice for stroke objects. **Exact steps for others to reproduce the error** this is only a problem seen with greace pencil keyframes. In 3.4, the eye was visible on the right side, but if we look at other standard keyframe channels, it should be on the left side for consistency (but not twice ;).
Brecht Van Lommel added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-02-21 11:14:55 +01:00
Member

Hi, thanks for the report. This looks like a regression to me (toggle doesn't appear in 3.4 and prior releases).
I'll bisect and fix the issue.

Hi, thanks for the report. This looks like a regression to me (toggle doesn't appear in 3.4 and prior releases). I'll bisect and fix the issue.
Pratik Borhade self-assigned this 2023-02-21 15:28:10 +01:00
Member

This is introduced by 49ad91b5ab
@ChrisLend , apart from the eye button issue, pin button is not drawn for gpencil layers.
acf_gpl_setting_flag has no condition for pinning (i.e. case ACHANNEL_SETTING_ALWAYS_VISIBLE)
Do you think grease pencil layers should also draw pin toggle? If not then fix would be:
I'll submit the patch after your reply.

index 000bf04697f..aa0dcdb8306 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -5227,7 +5227,8 @@ void ANIM_channel_draw_widgets(const bContext *C,
   if (ac->sl) {
     if (ELEM(ac->spacetype, SPACE_ACTION, SPACE_GRAPH) &&
         (acf->has_setting(ac, ale, ACHANNEL_SETTING_VISIBLE) ||
-         acf->has_setting(ac, ale, ACHANNEL_SETTING_ALWAYS_VISIBLE))) {
+         acf->has_setting(ac, ale, ACHANNEL_SETTING_ALWAYS_VISIBLE)) &&
+        (ale->type != ANIMTYPE_GPLAYER)) {
       /* Pin toggle. */
       if (acf->has_setting(ac, ale, ACHANNEL_SETTING_ALWAYS_VISIBLE)) {
         draw_setting_widget(ac, ale, acf, block, offset, ymid, ACHANNEL_SETTING_ALWAYS_VISIBLE);```
This is introduced by 49ad91b5ab7b7ac8d8c3fcfdb89ca07d0e4f194a @ChrisLend , apart from the `eye button` issue, pin button is not drawn for gpencil layers. `acf_gpl_setting_flag` has no condition for pinning (i.e. `case ACHANNEL_SETTING_ALWAYS_VISIBLE`) Do you think grease pencil layers should also draw pin toggle? If not then fix would be: I'll submit the patch after your reply. ```diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index 000bf04697f..aa0dcdb8306 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -5227,7 +5227,8 @@ void ANIM_channel_draw_widgets(const bContext *C, if (ac->sl) { if (ELEM(ac->spacetype, SPACE_ACTION, SPACE_GRAPH) && (acf->has_setting(ac, ale, ACHANNEL_SETTING_VISIBLE) || - acf->has_setting(ac, ale, ACHANNEL_SETTING_ALWAYS_VISIBLE))) { + acf->has_setting(ac, ale, ACHANNEL_SETTING_ALWAYS_VISIBLE)) && + (ale->type != ANIMTYPE_GPLAYER)) { /* Pin toggle. */ if (acf->has_setting(ac, ale, ACHANNEL_SETTING_ALWAYS_VISIBLE)) { draw_setting_widget(ac, ale, acf, block, offset, ymid, ACHANNEL_SETTING_ALWAYS_VISIBLE);```
Pratik Borhade added
Priority
High
and removed
Priority
Normal
labels 2023-02-22 08:07:28 +01:00
Pratik Borhade changed title from UI problem : eye icon visible twice in dope sheet for stroke objects to Regression: Eye icon visible twice in dope sheet for stroke objects 2023-02-22 08:07:43 +01:00

If I understand correctly, grease pencil layers do not support pinning.
If that is the case, then yes they shouldn't draw the pin icon.

If I understand correctly, grease pencil layers do not support pinning. If that is the case, then yes they shouldn't draw the pin icon.

@PratikPB2123 this should be closed now, right?

@PratikPB2123 this should be closed now, right?
Member

@ChrisLend , I've not pushed it to main repo.
I'll check documentation first before pushing it to main repo (doing this for the first time on new platform)

@ChrisLend , I've not pushed it to main repo. I'll check documentation first before pushing it to main repo (doing this for the first time on new platform)
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-02-24 18:02:51 +01:00
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
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#105009
No description provided.