4b2a4341a76c0dbd2a84cde8d892b48b28ffddb4
Don't change the object's active material when adding a material slot. This active material will be used by brushes with no pinned material, while the added slot is meant for the pinned material. The if-statement in `BKE_grease_pencil_object_material_ensure_from_brush()` would change the active unpinned material, even though it was only meant to handle the pinned material. This was not a new issue, it was just unlikely to run into it. Before brush assets were introduced this if-statement would not be executed when activating any of the default brushes. Afterwards it would be, because the material was newly linked (because the brush asset was linked) and so there was no material slot created for it yet. Pull Request: https://projects.blender.org/blender/blender/pulls/132865
…
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%
