Brush Assets: Deactivate asset shelf brush for non-brush tools #121671

Merged
Brecht Van Lommel merged 2 commits from brecht/blender:brush-tool-deactivate into brush-assets-project 2024-05-15 20:55:33 +02:00

It can be confusing to have the brush highlighted when it doesn't
actually do anything currently.

It can be confusing to have the brush highlighted when it doesn't actually do anything currently.
Brecht Van Lommel requested review from Julian Eisel 2024-05-10 21:08:55 +02:00
Author
Owner

I guess this will need deeper design changes, but I didn't understand the reason behind the current behavior.

I guess this will need deeper design changes, but I didn't understand the reason behind the current behavior.
Member

I think my open PR #121589 resolves the issue with deactivating.

I think my open PR #121589 resolves the issue with deactivating.
Hans Goudey reviewed 2024-05-10 21:24:16 +02:00
@ -332,1 +334,4 @@
void region_message_subscribe(const wmRegionMessageSubscribeParams *params)
{
wmMsgBus *mbus = params->message_bus;
Member

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.

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.
Author
Owner

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.

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.
HooglyBoogly marked this conversation as resolved
@ -254,3 +254,3 @@
const AssetView &asset_view = dynamic_cast<const AssetView &>(this->get_view());
if (!asset_view.active_asset_) {
return {};
return false;
Member

Ah, I tried to implement this the other day but didn't get it to work. This is the part I was missing!

Ah, I tried to implement this the other day but didn't get it to work. This is the part I was missing!
HooglyBoogly marked this conversation as resolved
Hans Goudey approved these changes 2024-05-13 16:00:31 +02:00
Hans Goudey left a comment
Member

I guess this overlaps with my fix in #121589 but the change here also seems fine. Maybe Julian can decide which goes first.

I guess this overlaps with my fix in #121589 but the change here also seems fine. Maybe Julian can decide which goes first.
Author
Owner

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.

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.
Brecht Van Lommel force-pushed brush-tool-deactivate from e535dc0a56 to e14c535473 2024-05-15 20:04:57 +02:00 Compare
Author
Owner

@JulianEisel do you want to review this still?

Since #121589 was approved this should not raise design questions anymore.

@JulianEisel do you want to review this still? Since #121589 was approved this should not raise design questions anymore.
Brecht Van Lommel changed title from Brush Assets: Decativate asset shelf brush for non-brush tools to Brush Assets: Deactivate asset shelf brush for non-brush tools 2024-05-15 20:07:13 +02:00
Brecht Van Lommel added 1 commit 2024-05-15 20:14:17 +02:00
Julian Eisel approved these changes 2024-05-15 20:50:22 +02:00
Brecht Van Lommel merged commit f84d8f21e2 into brush-assets-project 2024-05-15 20:55:33 +02:00
Brecht Van Lommel deleted branch brush-tool-deactivate 2024-05-15 20:55:36 +02:00
Sign in to join this conversation.
No reviewers
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
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#121671
No description provided.