Blender V5.3
blender::Brush Struct Reference

#include <DNA_brush_types.h>

Public Attributes

ID id
struct CurveMapping * curve_distance_falloff = nullptr
struct MTex mtex
struct MTex mask_mtex
PreviewImage * preview = nullptr
struct ColorBand * gradient = nullptr
struct PaintCurve * paint_curve = nullptr
float normal_weight = 0.0f
float rake_factor = 0
short blend = 0
short ob_mode = OB_MODE_ALL_PAINT_MESH
float weight = 1.0f
int size = 70
eBrushFlags flag = BRUSH_ALPHA_PRESSURE | BRUSH_SPACE_ATTEN
eBrushFlags2 flag2 = {}
eBrushSamplingFlags sampling_flag = BRUSH_PAINT_ANTIALIASING
eBrushStrokeType stroke_method = BRUSH_STROKE_SPACE
char _pad [7] = {}
int input_samples = 1
BrushMaskPressureFlags mask_pressure = {}
float jitter = 0.0f
int jitter_absolute = 0
eOverlayFlags overlay_flags = {}
int spacing = 10
int smooth_stroke_radius = 75
float smooth_stroke_factor = 0.9f
float rate = 0.1f
float color [3] = {1.0f, 1.0f, 1.0f}
eBrushColorJitterSettings_Flag color_jitter_flag = {}
float hsv_jitter [3] = {}
struct CurveMapping * curve_rand_hue = nullptr
struct CurveMapping * curve_rand_saturation = nullptr
struct CurveMapping * curve_rand_value = nullptr
struct CurveMapping * curve_size = nullptr
struct CurveMapping * curve_strength = nullptr
struct CurveMapping * curve_jitter = nullptr
struct CurveMapping * curve_hardness = nullptr
struct CurveMapping * curve_auto_smooth = nullptr
struct CurveMapping * curve_spacing = nullptr
float alpha = 1.0f
float hardness = 0.0f
float flow = 0
float wet_mix = 0
float wet_persistence = 0
float density = 0
ePaintBrush_flag paint_flags = {}
float tip_roundness = 1.0f
float tip_scale_x = 1.0f
float secondary_color [3] = {0, 0, 0}
DNA_DEPRECATED float rgb [3] = {1.0f, 1.0f, 1.0f}
DNA_DEPRECATED float secondary_rgb [3] = {0, 0, 0}
float dash_ratio = 1.0f
int dash_samples = 20
eBrushSculpt_DispDir sculpt_plane = SCULPT_DISP_DIR_AREA
float plane_offset = 0.0f
int gradient_spacing = 0
eBrushGradientSourceStroke gradient_stroke_mode = BRUSH_GRADIENT_PRESSURE
eBrushGradientSourceFill gradient_fill_mode = BRUSH_GRADIENT_LINEAR
char has_unsaved_changes = 0
eBrushFalloffShape falloff_shape = PAINT_FALLOFF_SHAPE_SPHERE
float falloff_angle_legacy = 0
eBrushSculptType sculpt_brush_type = SCULPT_BRUSH_TYPE_DRAW
eBrushVertexPaintType vertex_brush_type = VPAINT_BRUSH_TYPE_DRAW
eBrushWeightPaintType weight_brush_type = WPAINT_BRUSH_TYPE_DRAW
eBrushImagePaintType image_brush_type = IMAGE_PAINT_BRUSH_TYPE_DRAW
BrushMaskTool mask_tool = BRUSH_MASK_DRAW
eBrushGPaintType gpencil_brush_type = GPAINT_BRUSH_TYPE_DRAW
eBrushGPVertexType gpencil_vertex_brush_type = GPVERTEX_BRUSH_TYPE_DRAW
eBrushGPSculptType gpencil_sculpt_brush_type = GPSCULPT_BRUSH_TYPE_SMOOTH
eBrushGPWeightType gpencil_weight_brush_type = GPWEIGHT_BRUSH_TYPE_DRAW
eBrushCurvesSculptType curves_sculpt_brush_type = CURVES_SCULPT_BRUSH_TYPE_COMB
char _pad1 [2] = {}
float autosmooth_factor = 0.0f
float tilt_strength_factor = 0
float topology_rake_factor = 0.0f
float crease_pinch_factor = 0.5f
float normal_radius_factor = 0.5f
float area_radius_factor = 0.5f
float wet_paint_radius_factor = 0.5f
float plane_trim = 0.5f
float height = 0
float plane_height = 0
float plane_depth = 0
float stabilize_normal = 0
float stabilize_plane = 0
eBrushPlaneInversionMode plane_inversion_mode = BRUSH_PLANE_INVERT_DISPLACEMENT
float texture_sample_bias = 0
eBrushCurvePreset curve_distance_falloff_preset = BRUSH_CURVE_CUSTOM
float disconnected_distance_max = 0.1f
eBrushDeformTarget deform_target = BRUSH_DEFORM_TARGET_GEOMETRY
DNA_DEPRECATED int automasking_flags = 0
DNA_DEPRECATED int automasking_boundary_edges_propagation_steps = 1
DNA_DEPRECATED float automasking_start_normal_limit = 0.34906585f
DNA_DEPRECATED float automasking_start_normal_falloff = 0.25f
DNA_DEPRECATED float automasking_view_normal_limit = 1.570796
DNA_DEPRECATED float automasking_view_normal_falloff = 0.25f
eBrushElasticDeformType elastic_deform_type = BRUSH_ELASTIC_DEFORM_GRAB
float elastic_deform_volume_preservation = 0
eBrushSnakeHookDeformType snake_hook_deform_type = BRUSH_SNAKE_HOOK_DEFORM_FALLOFF
eBrushPoseDeformType pose_deform_type = BRUSH_POSE_DEFORM_ROTATE_TWIST
float pose_offset = 0
int pose_smooth_iterations = 4
int pose_ik_segments = 1
eBrushPoseOriginType pose_origin_type = BRUSH_POSE_ORIGIN_TOPOLOGY
eBrushBoundaryDeformType boundary_deform_type = BRUSH_BOUNDARY_DEFORM_BEND
eBrushBoundaryFalloffType boundary_falloff_type = BRUSH_BOUNDARY_FALLOFF_CONSTANT
float boundary_offset = 0
eBrushClothDeformType cloth_deform_type = BRUSH_CLOTH_DEFORM_DRAG
eBrushClothForceFalloffType cloth_force_falloff_type = BRUSH_CLOTH_FORCE_FALLOFF_RADIAL
eBrushClothSimulationAreaType cloth_simulation_area_type = BRUSH_CLOTH_SIMULATION_AREA_LOCAL
float cloth_mass = 1
float cloth_damping = 0.01
float cloth_sim_limit = 2.5f
float cloth_sim_falloff = 0.75f
float cloth_constraint_softbody_strength = 0
eBrushSmoothDeformType smooth_deform_type = BRUSH_SMOOTH_DEFORM_LAPLACIAN
float surface_smooth_shape_preservation = 0
float surface_smooth_current_vertex = 0
int surface_smooth_iterations = 0
float multiplane_scrape_angle = 0
eBrushSmearDeformType smear_deform_type = BRUSH_SMEAR_DEFORM_DRAG
eBrushSlideDeformType slide_deform_type = BRUSH_SLIDE_DEFORM_DRAG
eBrushProjectRayDirection project_ray_direction_type = BRUSH_PROJECT_RAY_DIRECTION_VIEW_NORMAL
char _pad2 [3] = {}
float minimum_distance = 0.0f
int texture_overlay_alpha = 33
int mask_overlay_alpha = 33
int cursor_overlay_alpha = 33
float unprojected_size = 0.10f
float sharp_threshold = 0
int blur_kernel_radius = 2
eBlurKernelType blur_mode = KERNEL_GAUSSIAN
float fill_threshold = 0.2f
float add_col [4] = {1.0, 0.39, 0.39, 0.9}
float sub_col [4] = {0.39, 0.39, 1.0, 0.9}
float stencil_pos [2] = {256, 256}
float stencil_dimension [2] = {256, 256}
float mask_stencil_pos [2] = {256, 256}
float mask_stencil_dimension [2] = {256, 256}
struct BrushGpencilSettings * gpencil_settings = nullptr
struct BrushCurvesSculptSettings * curves_sculpt_settings = nullptr
DNA_DEPRECATED int automasking_cavity_blur_steps = 0
DNA_DEPRECATED float automasking_cavity_factor = 1.0f
DNA_DEPRECATED struct CurveMapping * automasking_cavity_curve = nullptr
struct MeshAutomaskingSettings * mesh_automasking_settings = nullptr
eBrushUnifiedPaintFlags unified_paint_flags
char _pad3 [4] = {}

Detailed Description

Note
Any change to members that is user visible and that may make the brush differ from the one saved in the asset library should be followed by a BKE_brush_tag_unsaved_changes() call.

Definition at line 175 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad

char blender::Brush::_pad[7] = {}

Definition at line 214 of file DNA_brush_types.h.

◆ _pad1

char blender::Brush::_pad1[2] = {}

Definition at line 324 of file DNA_brush_types.h.

◆ _pad2

char blender::Brush::_pad2[3] = {}

Definition at line 420 of file DNA_brush_types.h.

◆ _pad3

char blender::Brush::_pad3[4] = {}

Definition at line 457 of file DNA_brush_types.h.

◆ add_col

◆ alpha

float blender::Brush::alpha = 1.0f

◆ area_radius_factor

float blender::Brush::area_radius_factor = 0.5f

Definition at line 335 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ automasking_boundary_edges_propagation_steps

DNA_DEPRECATED int blender::Brush::automasking_boundary_edges_propagation_steps = 1

Definition at line 365 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ automasking_cavity_blur_steps

DNA_DEPRECATED int blender::Brush::automasking_cavity_blur_steps = 0

Definition at line 450 of file DNA_brush_types.h.

◆ automasking_cavity_curve

DNA_DEPRECATED struct CurveMapping* blender::Brush::automasking_cavity_curve = nullptr

Definition at line 453 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ automasking_cavity_factor

DNA_DEPRECATED float blender::Brush::automasking_cavity_factor = 1.0f

Definition at line 451 of file DNA_brush_types.h.

◆ automasking_flags

DNA_DEPRECATED int blender::Brush::automasking_flags = 0

Definition at line 364 of file DNA_brush_types.h.

◆ automasking_start_normal_falloff

DNA_DEPRECATED float blender::Brush::automasking_start_normal_falloff = 0.25f

Definition at line 368 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_401().

◆ automasking_start_normal_limit

DNA_DEPRECATED float blender::Brush::automasking_start_normal_limit = 0.34906585f

Definition at line 367 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_401().

◆ automasking_view_normal_falloff

DNA_DEPRECATED float blender::Brush::automasking_view_normal_falloff = 0.25f

Definition at line 370 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_401().

◆ automasking_view_normal_limit

DNA_DEPRECATED float blender::Brush::automasking_view_normal_limit = 1.570796

Definition at line 369 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_401().

◆ autosmooth_factor

float blender::Brush::autosmooth_factor = 0.0f

Definition at line 326 of file DNA_brush_types.h.

◆ blend

◆ blur_kernel_radius

int blender::Brush::blur_kernel_radius = 2

Definition at line 432 of file DNA_brush_types.h.

Referenced by blender::paint_new_blur_kernel().

◆ blur_mode

eBlurKernelType blender::Brush::blur_mode = KERNEL_GAUSSIAN

Definition at line 433 of file DNA_brush_types.h.

Referenced by blender::paint_new_blur_kernel().

◆ boundary_deform_type

eBrushBoundaryDeformType blender::Brush::boundary_deform_type = BRUSH_BOUNDARY_DEFORM_BEND

Definition at line 386 of file DNA_brush_types.h.

◆ boundary_falloff_type

eBrushBoundaryFalloffType blender::Brush::boundary_falloff_type = BRUSH_BOUNDARY_FALLOFF_CONSTANT

Definition at line 387 of file DNA_brush_types.h.

◆ boundary_offset

float blender::Brush::boundary_offset = 0

Definition at line 388 of file DNA_brush_types.h.

◆ cloth_constraint_softbody_strength

float blender::Brush::cloth_constraint_softbody_strength = 0

Definition at line 401 of file DNA_brush_types.h.

◆ cloth_damping

float blender::Brush::cloth_damping = 0.01

Definition at line 396 of file DNA_brush_types.h.

◆ cloth_deform_type

eBrushClothDeformType blender::Brush::cloth_deform_type = BRUSH_CLOTH_DEFORM_DRAG

Definition at line 391 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::sculpt_is_grab_tool().

◆ cloth_force_falloff_type

eBrushClothForceFalloffType blender::Brush::cloth_force_falloff_type = BRUSH_CLOTH_FORCE_FALLOFF_RADIAL

Definition at line 392 of file DNA_brush_types.h.

◆ cloth_mass

float blender::Brush::cloth_mass = 1

Definition at line 395 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ cloth_sim_falloff

float blender::Brush::cloth_sim_falloff = 0.75f

Definition at line 399 of file DNA_brush_types.h.

◆ cloth_sim_limit

float blender::Brush::cloth_sim_limit = 2.5f

Definition at line 398 of file DNA_brush_types.h.

◆ cloth_simulation_area_type

eBrushClothSimulationAreaType blender::Brush::cloth_simulation_area_type = BRUSH_CLOTH_SIMULATION_AREA_LOCAL

Definition at line 393 of file DNA_brush_types.h.

◆ color

float blender::Brush::color[3] = {1.0f, 1.0f, 1.0f}

◆ color_jitter_flag

eBrushColorJitterSettings_Flag blender::Brush::color_jitter_flag = {}

Definition at line 236 of file DNA_brush_types.h.

◆ crease_pinch_factor

float blender::Brush::crease_pinch_factor = 0.5f

Definition at line 332 of file DNA_brush_types.h.

◆ cursor_overlay_alpha

int blender::Brush::cursor_overlay_alpha = 33

◆ curve_auto_smooth

struct CurveMapping* blender::Brush::curve_auto_smooth = nullptr

Definition at line 248 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ curve_distance_falloff

◆ curve_distance_falloff_preset

eBrushCurvePreset blender::Brush::curve_distance_falloff_preset = BRUSH_CURVE_CUSTOM

This preset is used to specify an exact function used for the distance falloff instead of doing a Bezier spline evaluation via CurveMapping for performance reasons.

See also
eBrushCurvePreset and eCurveMappingPreset

Definition at line 356 of file DNA_brush_types.h.

Referenced by blender::BKE_brush_curve_strength(), blender::blo_do_versions_300(), and blender::ed::sculpt_paint::load_tex_cursor().

◆ curve_hardness

struct CurveMapping* blender::Brush::curve_hardness = nullptr

Definition at line 247 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ curve_jitter

struct CurveMapping* blender::Brush::curve_jitter = nullptr

Definition at line 246 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ curve_rand_hue

◆ curve_rand_saturation

◆ curve_rand_value

◆ curve_size

struct CurveMapping* blender::Brush::curve_size = nullptr

Definition at line 244 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ curve_spacing

struct CurveMapping* blender::Brush::curve_spacing = nullptr

Definition at line 249 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ curve_strength

◆ curves_sculpt_brush_type

eBrushCurvesSculptType blender::Brush::curves_sculpt_brush_type = CURVES_SCULPT_BRUSH_TYPE_COMB

Active curves sculpt brush type.

Definition at line 322 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::paint_space_stroke_enabled().

◆ curves_sculpt_settings

◆ dash_ratio

float blender::Brush::dash_ratio = 1.0f

Rate

Definition at line 278 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ dash_samples

int blender::Brush::dash_samples = 20

Definition at line 279 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ deform_target

eBrushDeformTarget blender::Brush::deform_target = BRUSH_DEFORM_TARGET_GEOMETRY

Definition at line 361 of file DNA_brush_types.h.

◆ density

float blender::Brush::density = 0

Density

Definition at line 261 of file DNA_brush_types.h.

◆ disconnected_distance_max

float blender::Brush::disconnected_distance_max = 0.1f

Definition at line 359 of file DNA_brush_types.h.

◆ elastic_deform_type

eBrushElasticDeformType blender::Brush::elastic_deform_type = BRUSH_ELASTIC_DEFORM_GRAB

Definition at line 372 of file DNA_brush_types.h.

◆ elastic_deform_volume_preservation

float blender::Brush::elastic_deform_volume_preservation = 0

Definition at line 373 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ falloff_angle_legacy

float blender::Brush::falloff_angle_legacy = 0

Definition at line 301 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_270().

◆ falloff_shape

◆ fill_threshold

float blender::Brush::fill_threshold = 0.2f

◆ flag

◆ flag2

eBrushFlags2 blender::Brush::flag2 = {}

Definition at line 207 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ flow

float blender::Brush::flow = 0

Flow

Definition at line 256 of file DNA_brush_types.h.

◆ gpencil_brush_type

eBrushGPaintType blender::Brush::gpencil_brush_type = GPAINT_BRUSH_TYPE_DRAW

Active grease pencil brush type.

Definition at line 314 of file DNA_brush_types.h.

◆ gpencil_sculpt_brush_type

eBrushGPSculptType blender::Brush::gpencil_sculpt_brush_type = GPSCULPT_BRUSH_TYPE_SMOOTH

Active grease pencil sculpt brush type.

Definition at line 318 of file DNA_brush_types.h.

◆ gpencil_settings

◆ gpencil_vertex_brush_type

eBrushGPVertexType blender::Brush::gpencil_vertex_brush_type = GPVERTEX_BRUSH_TYPE_DRAW

Active grease pencil vertex brush type.

Definition at line 316 of file DNA_brush_types.h.

◆ gpencil_weight_brush_type

eBrushGPWeightType blender::Brush::gpencil_weight_brush_type = GPWEIGHT_BRUSH_TYPE_DRAW

Active grease pencil weight brush type.

Definition at line 320 of file DNA_brush_types.h.

◆ gradient

struct ColorBand* blender::Brush::gradient = nullptr

Color gradient.

Definition at line 190 of file DNA_brush_types.h.

Referenced by blender::paint_2d_gradient_fill(), and blender::paint_brush_color_get().

◆ gradient_fill_mode

eBrushGradientSourceFill blender::Brush::gradient_fill_mode = BRUSH_GRADIENT_LINEAR

Source for fill brush color gradient application.

Definition at line 291 of file DNA_brush_types.h.

Referenced by blender::paint_2d_gradient_fill().

◆ gradient_spacing

int blender::Brush::gradient_spacing = 0

Definition at line 287 of file DNA_brush_types.h.

Referenced by blender::paint_brush_color_get().

◆ gradient_stroke_mode

eBrushGradientSourceStroke blender::Brush::gradient_stroke_mode = BRUSH_GRADIENT_PRESSURE

Source for stroke color gradient application.

Definition at line 289 of file DNA_brush_types.h.

Referenced by blender::paint_brush_color_get().

◆ hardness

float blender::Brush::hardness = 0.0f

Hardness

Definition at line 254 of file DNA_brush_types.h.

◆ has_unsaved_changes

char blender::Brush::has_unsaved_changes = 0

Tag to indicate to the user that the brush has been changed since being imported. Only set for brushes that are actually imported (must have #ID.lib set). Runtime only.

Definition at line 297 of file DNA_brush_types.h.

◆ height

float blender::Brush::height = 0

Affectable height of brush (layer height for layer tool, i.e.).

Definition at line 340 of file DNA_brush_types.h.

◆ hsv_jitter

float blender::Brush::hsv_jitter[3] = {}

Definition at line 237 of file DNA_brush_types.h.

◆ id

◆ image_brush_type

◆ input_samples

int blender::Brush::input_samples = 1

Number of samples used to smooth the stroke.

Definition at line 216 of file DNA_brush_types.h.

◆ jitter

float blender::Brush::jitter = 0.0f

Jitter the position of the brush.

Definition at line 221 of file DNA_brush_types.h.

◆ jitter_absolute

int blender::Brush::jitter_absolute = 0

Absolute jitter in pixels.

Definition at line 223 of file DNA_brush_types.h.

◆ mask_mtex

◆ mask_overlay_alpha

int blender::Brush::mask_overlay_alpha = 33

Definition at line 425 of file DNA_brush_types.h.

◆ mask_pressure

BrushMaskPressureFlags blender::Brush::mask_pressure = {}

Pressure influence for mask.

Definition at line 219 of file DNA_brush_types.h.

Referenced by blender::BKE_brush_sample_masktex().

◆ mask_stencil_dimension

◆ mask_stencil_pos

float blender::Brush::mask_stencil_pos[2] = {256, 256}

◆ mask_tool

BrushMaskTool blender::Brush::mask_tool = BRUSH_MASK_DRAW

Enum eBrushMaskTool, only used if sculpt_brush_type is SCULPT_BRUSH_TYPE_MASK.

Definition at line 312 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::mask_brush_toggle_on(), and blender::ed::sculpt_paint::smooth_brush_toggle_on().

◆ mesh_automasking_settings

◆ minimum_distance

float blender::Brush::minimum_distance = 0.0f

Definition at line 421 of file DNA_brush_types.h.

◆ mtex

◆ multiplane_scrape_angle

float blender::Brush::multiplane_scrape_angle = 0

Definition at line 410 of file DNA_brush_types.h.

◆ normal_radius_factor

float blender::Brush::normal_radius_factor = 0.5f

Definition at line 334 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ normal_weight

float blender::Brush::normal_weight = 0.0f

Definition at line 193 of file DNA_brush_types.h.

◆ ob_mode

◆ overlay_flags

eOverlayFlags blender::Brush::overlay_flags = {}

◆ paint_curve

◆ paint_flags

ePaintBrush_flag blender::Brush::paint_flags = {}

Definition at line 262 of file DNA_brush_types.h.

◆ plane_depth

float blender::Brush::plane_depth = 0

Definition at line 344 of file DNA_brush_types.h.

◆ plane_height

float blender::Brush::plane_height = 0

Definition at line 343 of file DNA_brush_types.h.

◆ plane_inversion_mode

eBrushPlaneInversionMode blender::Brush::plane_inversion_mode = BRUSH_PLANE_INVERT_DISPLACEMENT

Definition at line 347 of file DNA_brush_types.h.

◆ plane_offset

float blender::Brush::plane_offset = 0.0f

Offset for plane brushes (clay, flatten, fill, scrape).

Definition at line 285 of file DNA_brush_types.h.

◆ plane_trim

float blender::Brush::plane_trim = 0.5f

Definition at line 338 of file DNA_brush_types.h.

◆ pose_deform_type

eBrushPoseDeformType blender::Brush::pose_deform_type = BRUSH_POSE_DEFORM_ROTATE_TWIST

Definition at line 379 of file DNA_brush_types.h.

◆ pose_ik_segments

int blender::Brush::pose_ik_segments = 1

Definition at line 382 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ pose_offset

float blender::Brush::pose_offset = 0

Definition at line 380 of file DNA_brush_types.h.

◆ pose_origin_type

eBrushPoseOriginType blender::Brush::pose_origin_type = BRUSH_POSE_ORIGIN_TOPOLOGY

Definition at line 383 of file DNA_brush_types.h.

◆ pose_smooth_iterations

int blender::Brush::pose_smooth_iterations = 4

Definition at line 381 of file DNA_brush_types.h.

Referenced by blender::blo_do_versions_280().

◆ preview

PreviewImage* blender::Brush::preview = nullptr

Definition at line 188 of file DNA_brush_types.h.

Referenced by blender::brush_copy_data().

◆ project_ray_direction_type

eBrushProjectRayDirection blender::Brush::project_ray_direction_type = BRUSH_PROJECT_RAY_DIRECTION_VIEW_NORMAL

Definition at line 419 of file DNA_brush_types.h.

◆ rake_factor

float blender::Brush::rake_factor = 0

Rake actual data (not texture), used for sculpt.

Definition at line 195 of file DNA_brush_types.h.

◆ rate

float blender::Brush::rate = 0.1f

Paint operations / second (airbrush).

Definition at line 232 of file DNA_brush_types.h.

◆ rgb

DNA_DEPRECATED float blender::Brush::rgb[3] = {1.0f, 1.0f, 1.0f}

Definition at line 274 of file DNA_brush_types.h.

◆ sampling_flag

eBrushSamplingFlags blender::Brush::sampling_flag = BRUSH_PAINT_ANTIALIASING

Definition at line 208 of file DNA_brush_types.h.

◆ sculpt_brush_type

◆ sculpt_plane

eBrushSculpt_DispDir blender::Brush::sculpt_plane = SCULPT_DISP_DIR_AREA

The direction of movement for sculpt vertices.

Definition at line 282 of file DNA_brush_types.h.

◆ secondary_color

float blender::Brush::secondary_color[3] = {0, 0, 0}

Background color.

Definition at line 271 of file DNA_brush_types.h.

Referenced by blender::brush_colors_flip_exec().

◆ secondary_rgb

DNA_DEPRECATED float blender::Brush::secondary_rgb[3] = {0, 0, 0}

Definition at line 275 of file DNA_brush_types.h.

◆ sharp_threshold

float blender::Brush::sharp_threshold = 0

◆ size

int blender::Brush::size = 70

◆ slide_deform_type

eBrushSlideDeformType blender::Brush::slide_deform_type = BRUSH_SLIDE_DEFORM_DRAG

Definition at line 416 of file DNA_brush_types.h.

◆ smear_deform_type

eBrushSmearDeformType blender::Brush::smear_deform_type = BRUSH_SMEAR_DEFORM_DRAG

Definition at line 413 of file DNA_brush_types.h.

◆ smooth_deform_type

eBrushSmoothDeformType blender::Brush::smooth_deform_type = BRUSH_SMOOTH_DEFORM_LAPLACIAN

Definition at line 404 of file DNA_brush_types.h.

◆ smooth_stroke_factor

float blender::Brush::smooth_stroke_factor = 0.9f

Higher values limit fast changes in the stroke direction.

Definition at line 230 of file DNA_brush_types.h.

◆ smooth_stroke_radius

int blender::Brush::smooth_stroke_radius = 75

Turning radius (in pixels) for smooth stroke.

Definition at line 228 of file DNA_brush_types.h.

◆ snake_hook_deform_type

eBrushSnakeHookDeformType blender::Brush::snake_hook_deform_type = BRUSH_SNAKE_HOOK_DEFORM_FALLOFF

Definition at line 376 of file DNA_brush_types.h.

◆ spacing

◆ stabilize_normal

float blender::Brush::stabilize_normal = 0

Definition at line 345 of file DNA_brush_types.h.

◆ stabilize_plane

float blender::Brush::stabilize_plane = 0

Definition at line 346 of file DNA_brush_types.h.

◆ stencil_dimension

◆ stencil_pos

float blender::Brush::stencil_pos[2] = {256, 256}

◆ stroke_method

◆ sub_col

float blender::Brush::sub_col[4] = {0.39, 0.39, 1.0, 0.9}

◆ surface_smooth_current_vertex

float blender::Brush::surface_smooth_current_vertex = 0

Definition at line 406 of file DNA_brush_types.h.

◆ surface_smooth_iterations

int blender::Brush::surface_smooth_iterations = 0

Definition at line 407 of file DNA_brush_types.h.

◆ surface_smooth_shape_preservation

float blender::Brush::surface_smooth_shape_preservation = 0

Definition at line 405 of file DNA_brush_types.h.

◆ texture_overlay_alpha

int blender::Brush::texture_overlay_alpha = 33

Definition at line 424 of file DNA_brush_types.h.

◆ texture_sample_bias

float blender::Brush::texture_sample_bias = 0

◆ tilt_strength_factor

float blender::Brush::tilt_strength_factor = 0

◆ tip_roundness

◆ tip_scale_x

◆ topology_rake_factor

float blender::Brush::topology_rake_factor = 0.0f

Definition at line 330 of file DNA_brush_types.h.

◆ unified_paint_flags

eBrushUnifiedPaintFlags blender::Brush::unified_paint_flags

◆ unprojected_size

float blender::Brush::unprojected_size = 0.10f

Definition at line 428 of file DNA_brush_types.h.

◆ vertex_brush_type

eBrushVertexPaintType blender::Brush::vertex_brush_type = VPAINT_BRUSH_TYPE_DRAW

Active vertex paint.

Definition at line 306 of file DNA_brush_types.h.

Referenced by blender::VertexPaintStroke::update_step().

◆ weight

float blender::Brush::weight = 1.0f

Brush weight.

Definition at line 202 of file DNA_brush_types.h.

◆ weight_brush_type

eBrushWeightPaintType blender::Brush::weight_brush_type = WPAINT_BRUSH_TYPE_DRAW

Active weight paint.

Definition at line 308 of file DNA_brush_types.h.

Referenced by blender::WeightPaintStroke::test_start().

◆ wet_mix

float blender::Brush::wet_mix = 0

Wet Mix

Definition at line 258 of file DNA_brush_types.h.

◆ wet_paint_radius_factor

float blender::Brush::wet_paint_radius_factor = 0.5f

Definition at line 336 of file DNA_brush_types.h.

Referenced by blender::do_versions_after_linking_290().

◆ wet_persistence

float blender::Brush::wet_persistence = 0

Definition at line 259 of file DNA_brush_types.h.


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