9e8c037375b42f7e2376549e55958cb98c4eea4e
paint.brush and paint.eraser_brush read-only
With the brush asset project, the `Paint` `brush` and `eraser_brush` properties were effectively turned into a convenient cache of the active brush. A related operator, `paint.brush_set` was also removed in favor of `brush.asset_activate` While this is technically a breaking change to the API, it currently seems better to align this property with expected usage & other recent changes rather than allow users to set a property that may not behave as expected. There are two currently known side effects that setting this property via the Python API has that the equivalent call to brush.asset_activate does not: * Changing this property via the console or script, peforming a stroke and then undoing the stroke causes the active brush to change - this directly contrasts with the normal experience of using the asset shelf where brush changes are not affected by undo * The asset shelf itself does not update the currently active brush until a subsequent mouseover Pull Request: https://projects.blender.org/blender/blender/pulls/131991
…
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%
