Shift+click works incorrectly after deleting all brushes #81636

Closed
opened 2020-10-11 21:50:43 +02:00 by Ovionis · 6 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 770/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-10 16:05, hash: 1b04eb6c44

Short description of error
When you use Shift+Click/Draw in sculpt mode, to use the smooth brush, it does not work if you don't have a brush preset stored for the smooth brush.

Exact steps for others to reproduce the error
Delete all the brushes from your file.
Select a brush besides the smooth brush (to generate a default brush)
Hold Shift and start sculpting.

You will see the active brush working first but without a cursor. When you release the mouse, the brush's radius will be reset to 1 px.
If you use Scene as the Radius Unit instead of View, the brush's size won't change but smooth still won't work.

If you click the Smooth Brush, then another brush, it will start working because it generated a brush in the file.

2020-10-11 14-30-37.mp4

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 770/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-10 16:05, hash: `1b04eb6c44` **Short description of error** When you use Shift+Click/Draw in sculpt mode, to use the smooth brush, it does not work if you don't have a brush preset stored for the smooth brush. **Exact steps for others to reproduce the error** Delete all the brushes from your file. Select a brush besides the smooth brush *(to generate a default brush)* Hold Shift and start sculpting. You will see the active brush working first but without a cursor. When you release the mouse, the brush's radius will be reset to 1 px. If you use Scene as the Radius Unit instead of View, the brush's size won't change but smooth still won't work. If you click the Smooth Brush, then another brush, it will start working because it generated a brush in the file. [2020-10-11 14-30-37.mp4](https://archive.blender.org/developer/F8980367/2020-10-11_14-30-37.mp4)
Author

Added subscriber: @Phigon

Added subscriber: @Phigon
Richard Antalik changed title from [Sculpt] null Smooth Brush defaults to 1px / 0 to Shift+click works incorrectly after deleting all brushes 2020-10-14 20:11:31 +02:00

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

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

I found a use for having multiple brushes.
I then found that this happens "not" when you don't have any smooth brush presets but when there is no brush named "Smooth".

I was trying to have "alternative" smooth brushes, and since re-pressing the smooth brush hotkey (Shift+S) would cycle through the smooths, I figure it would use whichever brush I had selected last.
When that didn't work, I found it was switching to the brush by name, and that

  • i can only use one smooth brush or have to continuously switch their names to toggle between them
  • It doesn't actually have to be a smooth brush.

2 behaves as a different bug, where the active brush gets stuck as the not-smooth brush,

however it "could" be redone as a custom option, to allow user-defined quick-strokes (like a mask brush hotkey, or carve-hotkey)

I found a use for having multiple brushes. I then found that this happens "not" when you don't have any smooth brush presets but when there is no brush named "Smooth". I was trying to have "alternative" smooth brushes, and since re-pressing the smooth brush hotkey (Shift+S) would cycle through the smooths, I figure it would use whichever brush I had selected last. When that didn't work, I found it was switching to the brush by name, and that - i can only use one smooth brush or have to continuously switch their names to toggle between them - It doesn't actually have to be a smooth brush. # 2 behaves as a different bug, where the active brush gets stuck as the not-smooth brush, however it "could" be redone as a custom option, to allow user-defined quick-strokes (like a mask brush hotkey, or carve-hotkey)
Member

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

I consider this a TODO related to the brush management project. What the current code does (which is very bad) is searching for a brush datablock called "Smooth" (this is hardcoded), store the name of the previous brush datablock and swap the current brush datablock in the stroke cache. When the stroke ends, it does the opposite process. Ideally, you should be able to use any brush preset as a temporary smooth brush and set this manually from the UI.

I consider this a TODO related to the brush management project. What the current code does (which is very bad) is searching for a brush datablock called "Smooth" (this is hardcoded), store the name of the previous brush datablock and swap the current brush datablock in the stroke cache. When the stroke ends, it does the opposite process. Ideally, you should be able to use any brush preset as a temporary smooth brush and set this manually from the UI.
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#81636
No description provided.