9e1e9b0859ef055ce71b555f825c8caafd2a5559
brush.asset_activate
This commit adds a toggle functionality to the `brush.asset_activate` operator that makes it behave similarly to the `paint.brush_select` parameter of the same name. When the operator has this option enabled, using the operator or pressing the relevant key will either: * Activate the specified brush and store it if the current brush does not match the specified brush * Activate the previously stored brush if it exists. This option is exposed in the keymaps and enabled by default for the Sculpt Mask brush. This allows, for example, users to press 'M' to switch to the mask brush and then press 'M' again to switch back to their previously active brush. Partially addresses this RCS submission: [1] [1] https://blender.community/c/rightclickselect/1VwZ/ --- ### Notes This commit does not currently clear the `AssetWeakReference` when switching paint modes. Pull Request: https://projects.blender.org/blender/blender/pulls/138845
…
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%
