Files
test/source/blender
Philipp Oeser cc01bb83f6 Fix #111490: paint radius set to 1 (shift-smoothing but brush missing)
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
2023-08-29 13:44:35 +02:00
..
2023-08-28 15:01:05 +02:00
2023-08-25 09:40:42 +10:00
2023-08-18 08:56:12 +10:00
2023-08-28 21:38:38 -07:00
2023-08-29 15:55:09 +10:00
2023-08-28 15:01:05 +02:00
2023-08-29 16:43:20 +10:00
2023-08-29 12:43:02 +02:00
2023-08-28 15:01:05 +02:00
2023-08-28 18:02:31 +02:00
2023-08-24 11:38:41 +10:00