cc01bb83f63b9299a7baa0d9eba4f7a48a0a87b7
This affected sculpt, vertex- and weightpaint. So attempting to (temporarily) switching to the smooth/blur tools from another tool using the "Shift" shortcut can fail if the corresponding smooth/blur brush is not found/missing [which was the case in the report because the brush was deleted]. In this case, brushes dont really get switched, but blender would still try to cache the size (because the smooth/blur brush temporarily uses the same size as the previous brush) of the smooth brush in `StrokeCache` (see `smooth_brush_toggle_on`). Then in `smooth_brush_toggle_off` it was assumed brushes were actually switched and the (non-existing) size of the (missing) smooth brush was applied to the **actual** brush. Now restructure code a bit so in the case of a missing brush we can early out (without affecting the **actual** brush then). Pull Request: https://projects.blender.org/blender/blender/pulls/111516
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
