|
Blender V4.3
|
#include <DNA_scene_types.h>
Public Attributes | |
| struct AssetWeakReference * | main_brush_asset_reference |
| ListBase | active_brush_per_brush_type |
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 945 of file DNA_scene_types.h.
| ListBase ToolSystemBrushBindings::active_brush_per_brush_type |
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 957 of file DNA_scene_types.h.
Referenced by BKE_paint_blend_read_data(), BKE_paint_blend_write(), BKE_paint_copy(), BKE_paint_free(), toolsystem_brush_type_binding_lookup(), and toolsystem_brush_type_binding_update().
| struct AssetWeakReference* ToolSystemBrushBindings::main_brush_asset_reference |
Definition at line 946 of file DNA_scene_types.h.
Referenced by BKE_paint_blend_read_data(), BKE_paint_blend_write(), BKE_paint_copy(), BKE_paint_free(), toolsystem_brush_activate_from_toolref_for_object_paint(), and toolsystem_main_brush_binding_update_from_active().