Blender V5.3
blender::Paint Struct Reference

#include <DNA_scene_types.h>

Public Attributes

struct Brush * brush = nullptr
struct AssetWeakReference * brush_asset_reference = nullptr
ToolSystemBrushBindings tool_brush_bindings
struct Palette * palette = nullptr
struct CurveMapping * cavity_curve = nullptr
ePaintFlags flags = PAINT_SHOW_BRUSH
ePaintDebugFlags debug_flags = {}
int num_input_samples_deprecated = 0
ePaintSymmetryFlags symmetry_flags = PAINT_SYMMETRY_FEATHER
PaintCurveVisibilityFlags curve_visibility_flags = {}
float tile_offset [3] = {1.0f, 1.0f, 1.0f}
struct UnifiedPaintSettings unified_paint_settings
struct MeshAutomaskingSettings * mesh_automasking_settings = nullptr
bke::PaintRuntime * runtime = nullptr

Detailed Description

Paint Tool Base.

Definition at line 1229 of file DNA_scene_types.h.

Member Data Documentation

◆ brush

struct Brush* blender::Paint::brush = nullptr

The active brush. Possibly null. Possibly stored in a separate Main data-base and not user- counted.

Definition at line 1236 of file DNA_scene_types.h.

Referenced by blender::BKE_paint_canvas_key_get(), blender::BKE_paint_copy(), blender::blo_do_versions_503(), and blender::scene_foreach_paint().

◆ brush_asset_reference

struct AssetWeakReference* blender::Paint::brush_asset_reference = nullptr

A weak asset reference to the brush, if not NULL. Used to attempt restoring the active brush from the AssetLibrary system, typically on file load.

Definition at line 1243 of file DNA_scene_types.h.

Referenced by blender::BKE_paint_copy(), and blender::blo_do_versions_503().

◆ cavity_curve

◆ curve_visibility_flags

PaintCurveVisibilityFlags blender::Paint::curve_visibility_flags = {}

Collapsed state of a given pressure curve

Definition at line 1265 of file DNA_scene_types.h.

◆ debug_flags

ePaintDebugFlags blender::Paint::debug_flags = {}

Definition at line 1252 of file DNA_scene_types.h.

Referenced by blender::workbench::SceneState::init().

◆ flags

◆ mesh_automasking_settings

◆ num_input_samples_deprecated

int blender::Paint::num_input_samples_deprecated = 0

Paint stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the stroke. This value is deprecated. Refer to the Brush and #UnifiedPaintSetting values instead.

Definition at line 1258 of file DNA_scene_types.h.

Referenced by blender::blo_do_versions_401().

◆ palette

◆ runtime

◆ symmetry_flags

ePaintSymmetryFlags blender::Paint::symmetry_flags = PAINT_SYMMETRY_FEATHER

Flags used for symmetry.

Definition at line 1261 of file DNA_scene_types.h.

Referenced by blender::blo_do_versions_260(), and blender::paint_2d_new_stroke().

◆ tile_offset

float blender::Paint::tile_offset[3] = {1.0f, 1.0f, 1.0f}

Definition at line 1267 of file DNA_scene_types.h.

Referenced by blender::blo_do_versions_503().

◆ tool_brush_bindings

ToolSystemBrushBindings blender::Paint::tool_brush_bindings

Definition at line 1245 of file DNA_scene_types.h.

Referenced by blender::BKE_paint_copy().

◆ unified_paint_settings


The documentation for this struct was generated from the following file: