GPv3: Mask toggle in dopesheet channel #121259
No reviewers
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#121259
Loading…
Reference in New Issue
No description provided.
Delete Branch "PratikPB2123/blender:gpv3-mask-channel-toggle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
use_mask
property in dopesheet layer channelThanks
@ -5588,0 +5593,4 @@
const std::optional<std::string> layer_mask_rna_path = RNA_path_from_ID_to_property(
&ptr, layer_mask_prop);
if (RNA_path_resolve_property(&id_ptr, layer_mask_rna_path->c_str(), &ptr, &layer_mask_prop)) {
const int icon = layer->use_masks() ? ICON_CLIPUV_DEHLT : ICON_CLIPUV_HLT;
Does this work here? Thinking of the onion skinning icon.
Hi, current changes are working, yes. That's why I included both on-off icons in screenshot 🙃
If we want this to work like onion_skinning, we could add
RNA_def_property_ui_icon(prop, ICON_CLIPUV_DEHLT , 1);
for use_masks inrna_grease_pencil.cc
. This will also involve some changes insideinterface_template_grease_pencil_layer_tree.cc
for mask propertyRight it might be better to make the icon part of the RNA property like you suggested. I think that should make it more consistent!
Actually, this doesn't work well for the
use_mask
property exposed in layer properties panel. The checkbox toggle shows the mask-icon. So I think it might be better to go with current definition 😅Following diff works but changes I did in
properties_data_grease_pencil.py
are more like a hack to fix the wrong icon shown in the above image.Let me know if this diff is: 1) needed in this PR 2) not needed 3) expected to be submitted as separate PR
git diff :)
The image seems to have been deleted. Could you try and post it again? I'm not sure I understand what's going wrong in the data-properties mask panel.
Looks like the mask icon is reversed in the icon sheet (e.g. the ON state comes before the OFF state) which is not the case for the other icons 🙄.
Here is a diff:
Didn't notice that. I'll give a try :)
Thanks, that worked :D
Updated the PR.
Thanks!