6e82e403dff2c5410494c665d409847931b03e28
Prior to this commit, determining the default brush asset used for a particular mode was based on the object's mode. This is slightly incorrect for the Image Editor, since it may be in Paint Mode no matter the underlying object type. To fix this, use the runtime `PaintMode` enum for determining these default values instead of `eObjectType` and store the `PaintMode` on `PaintRuntime` for easy access. Additionally, inside the toolsystem, prevent accidentally unsetting the default brush by checking for the presence of the asset when loading an `AssetWeakReference`. Pull Request: https://projects.blender.org/blender/blender/pulls/144765
…
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%
