|
Blender V5.3
|
#include <DNA_scene_types.h>
Public Attributes | |
| struct AssetWeakReference * | main_brush_asset_reference = nullptr |
| ListBaseT< NamedBrushAssetReference > | active_brush_per_brush_type = {nullptr, nullptr} |
For the tool system: Storage to remember the last active brush for specific tools.
This stores a "main" brush reference, which is used for any tool that uses brushes but isn't limited to a specific brush type, and a list of brush references identified by the brush type, for tools that are limited to a brush type.
The tool system updates these fields as the active brush or active tool changes. It also determines the brush to remember/restore on tool changes and activates it.
Definition at line 1168 of file DNA_scene_types.h.
| ListBaseT<NamedBrushAssetReference> blender::ToolSystemBrushBindings::active_brush_per_brush_type = {nullptr, nullptr} |
The tool system exposes tools for some brush types, like an eraser tool to access eraser brushes. Switching between tools should remember the last used brush for a brush type, e.g. which eraser was used last by the eraser tool.
Note that multiple tools may use the same brush type, for example primitive draw tools (to draw rectangles, circles, lines, etc.) all use a "DRAW" brush, which will then be shared among them.
Definition at line 1180 of file DNA_scene_types.h.
Referenced by blender::BKE_paint_blend_read_data(), blender::BKE_paint_blend_write(), and blender::BKE_paint_copy().
| struct AssetWeakReference* blender::ToolSystemBrushBindings::main_brush_asset_reference = nullptr |
Definition at line 1169 of file DNA_scene_types.h.
Referenced by blender::BKE_paint_blend_read_data(), blender::BKE_paint_blend_write(), and blender::BKE_paint_copy().