Brush Assets: Deactivate asset shelf brush for non-brush tools #121671
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#121671
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "brecht/blender:brush-tool-deactivate"
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?
It can be confusing to have the brush highlighted when it doesn't
actually do anything currently.
I guess this will need deeper design changes, but I didn't understand the reason behind the current behavior.
I think my open PR #121589 resolves the issue with deactivating.
@ -332,1 +334,4 @@
void region_message_subscribe(const wmRegionMessageSubscribeParams *params)
{
wmMsgBus *mbus = params->message_bus;
It seems a little bit wrong to put this in the asset shelf code, which doesn't depend on tools itself. (all asset shelves will redraw when the tool changes now). But maybe it's still fine practically.
My reasoning was that the asset shelf in general was designed to be used in together with modes and tools, so we might as well do it by default. Plus there's no elegant way to do this in Python.
@ -254,3 +254,3 @@
const AssetView &asset_view = dynamic_cast<const AssetView &>(this->get_view());
if (!asset_view.active_asset_) {
return {};
return false;
Ah, I tried to implement this the other day but didn't get it to work. This is the part I was missing!
I guess this overlaps with my fix in #121589 but the change here also seems fine. Maybe Julian can decide which goes first.
Thinking about this, the previous behavior is needed if the synchronization is one way from data to asset shelf. Otherwise it would always reset the active item. Whereas here we want it to be two way.
e535dc0a56
toe14c535473
@JulianEisel do you want to review this still?
Since #121589 was approved this should not raise design questions anymore.
Brush Assets: Decativate asset shelf brush for non-brush toolsto Brush Assets: Deactivate asset shelf brush for non-brush tools