af601e01fab30a7ca8f51cbd7b480de6fb010a6a
The keymap `km_image_paint` righfully includes both `VIEW3D_AST_brush_texture_paint` and `IMAGE_AST_brush_paint` since painting can be done in both Editors. So we want to improve upon polling. Three parent classes involved: `ImageAssetShelf`, `View3DAssetShelf`, both inherit from `BrushAssetShelf` `IMAGE_AST_brush_paint` (inherits from `ImageAssetShelf`) was already checking for being in paint mode (so that Asset Shelf already wasnt showing), but `VIEW3D_AST_brush_texture_paint` (inherits from `View3DAssetShelf`) was permissive (doesnt have specialized poll, relies on the "mother" classes `BrushAssetShelf` which only checks for an active object and if that active objects `mode` equals the Assets Shelfs "mode"). This can be true if you have an object in Texture Paint mode in the 3DView. So to make shelves like `VIEW3D_AST_brush_texture_paint` **not** pass their poll in the Image Editor, add a specific poll case. NOTE: the report also mentiones a crash when actually selecting a "bad" brush from the "bad" asset shelf. Since that scenario is now impossible to reach, the crash has not been investigated further. Pull Request: https://projects.blender.org/blender/blender/pulls/146071
…
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%
