Sculpt Tools (not brushes) treated like brushes #69786

Open
opened 2019-09-12 11:02:15 +02:00 by Juanfran Matheu · 6 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: Radeon RX 580 Series ATI Technologies Inc. 4.5.13570 Core Profile Context 19.8.1 26.20.13001.29010

Blender Version
Broken: version: 2.81 (sub 10), branch: master, commit date: 2019-09-11 21:31, hash: 1e375ab5a1

Short description of error
If you use any brush and then switch to Mesh Filter or any Transformation Tool, Box Mask.....
the info of the previous brush is still there. Fox example:

  • You choose the mask brush
  • Then switch to mesh filter
  • Mesh filter still has the data of the mask brush and is treated like a mask brush

This is true because if you create some tool or addon that filter some option only for mask brush with

context.tool_settings.sculpt.brush == 'MASK' 

or

self.paint_settings(context).brush == 'MASK'  #using UnifiedPaintPanel

when switching to mesh filter or any other mentioned, you still can see those options

This ends up that devs have to make a previous pass to filter all tools that are not brushes and are treated like if they were (before filter by brush type)

if context.workspace.tools.from_space_view3d_mode("SCULPT", create=False).idname == "builtin.mesh_filter":  exclude = True

or filter all brushes by idname of the tool and not by brush type

image.png

Probably there's a better way to filter those tools but the matter is they are treated like brushes, not only internally, also visually in the UI... when they aren't

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: Radeon RX 580 Series ATI Technologies Inc. 4.5.13570 Core Profile Context 19.8.1 26.20.13001.29010 **Blender Version** Broken: version: 2.81 (sub 10), branch: master, commit date: 2019-09-11 21:31, hash: `1e375ab5a1` **Short description of error** If you use any brush and then switch to Mesh Filter or any Transformation Tool, Box Mask..... the info of the previous brush is still there. Fox example: - You choose the mask brush - Then switch to mesh filter - Mesh filter still has the data of the mask brush and is treated like a mask brush This is true because if you create some tool or addon that filter some option only for mask brush with ``` context.tool_settings.sculpt.brush == 'MASK' ``` or ``` self.paint_settings(context).brush == 'MASK' #using UnifiedPaintPanel ``` when switching to mesh filter or any other mentioned, you still can see those options This ends up that devs have to make a previous pass to filter all **tools that are not brushes and are treated like if they were** (before filter by brush type) ``` if context.workspace.tools.from_space_view3d_mode("SCULPT", create=False).idname == "builtin.mesh_filter": exclude = True ``` or filter all brushes by idname of the tool and not by brush type ![image.png](https://archive.blender.org/developer/F7738720/image.png) Probably there's a better way to filter those tools but the matter is they are treated like brushes, not only internally, also visually in the UI... when they aren't

Added subscriber: @jfmatheu

Added subscriber: @jfmatheu

#70111 was marked as duplicate of this issue

#70111 was marked as duplicate of this issue

Added subscriber: @capnm

Added subscriber: @capnm
Member

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Member

I would prefer considering this a design task and not a brush. Maybe in the future we want to include some tools that need an active brush at the same time, so I would rather have a solution that fits all areas of Blender (this also happens in other modes) and not the specific case of Sculpt mode and the mesh filter.

I would prefer considering this a design task and not a brush. Maybe in the future we want to include some tools that need an active brush at the same time, so I would rather have a solution that fits all areas of Blender (this also happens in other modes) and not the specific case of Sculpt mode and the mesh filter.

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:48 +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
5 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#69786
No description provided.