Blender V4.3
Brush Struct Reference

#include <DNA_brush_types.h>

Public Attributes

ID id
 
struct BrushClone clone
 
struct CurveMappingcurve
 
struct MTex mtex
 
struct MTex mask_mtex
 
struct Brushtoggle_brush
 
struct ImBuficon_imbuf
 
PreviewImagepreview
 
struct ColorBandgradient
 
struct PaintCurvepaint_curve
 
char icon_filepath [1024]
 
float normal_weight
 
float rake_factor
 
short blend
 
short ob_mode
 
float weight
 
int size
 
int flag
 
int flag2
 
int sampling_flag
 
int input_samples
 
int mask_pressure
 
float jitter
 
int jitter_absolute
 
int overlay_flags
 
int spacing
 
int smooth_stroke_radius
 
float smooth_stroke_factor
 
float rate
 
float rgb [3]
 
float alpha
 
float hardness
 
float flow
 
float wet_mix
 
float wet_persistence
 
float density
 
int paint_flags
 
float tip_roundness
 
float tip_scale_x
 
float secondary_rgb [3]
 
float dash_ratio
 
int dash_samples
 
int sculpt_plane
 
float plane_offset
 
int gradient_spacing
 
char gradient_stroke_mode
 
char gradient_fill_mode
 
char has_unsaved_changes
 
char falloff_shape
 
float falloff_angle
 
char sculpt_brush_type
 
char vertex_brush_type
 
char weight_brush_type
 
char image_brush_type
 
char mask_tool
 
char gpencil_brush_type
 
char gpencil_vertex_brush_type
 
char gpencil_sculpt_brush_type
 
char gpencil_weight_brush_type
 
char curves_sculpt_brush_type
 
char _pad1 [6]
 
float autosmooth_factor
 
float tilt_strength_factor
 
float topology_rake_factor
 
float crease_pinch_factor
 
float normal_radius_factor
 
float area_radius_factor
 
float wet_paint_radius_factor
 
float plane_trim
 
float height
 
float texture_sample_bias
 
int curve_preset
 
float disconnected_distance_max
 
int deform_target
 
int automasking_flags
 
int automasking_boundary_edges_propagation_steps
 
float automasking_start_normal_limit
 
float automasking_start_normal_falloff
 
float automasking_view_normal_limit
 
float automasking_view_normal_falloff
 
int elastic_deform_type
 
float elastic_deform_volume_preservation
 
int snake_hook_deform_type
 
int pose_deform_type
 
float pose_offset
 
int pose_smooth_iterations
 
int pose_ik_segments
 
int pose_origin_type
 
int boundary_deform_type
 
int boundary_falloff_type
 
float boundary_offset
 
int cloth_deform_type
 
int cloth_force_falloff_type
 
int cloth_simulation_area_type
 
float cloth_mass
 
float cloth_damping
 
float cloth_sim_limit
 
float cloth_sim_falloff
 
float cloth_constraint_softbody_strength
 
int smooth_deform_type
 
float surface_smooth_shape_preservation
 
float surface_smooth_current_vertex
 
int surface_smooth_iterations
 
float multiplane_scrape_angle
 
int smear_deform_type
 
int slide_deform_type
 
int texture_overlay_alpha
 
int mask_overlay_alpha
 
int cursor_overlay_alpha
 
float unprojected_radius
 
float sharp_threshold
 
int blur_kernel_radius
 
int blur_mode
 
float fill_threshold
 
float add_col [4]
 
float sub_col [4]
 
float stencil_pos [2]
 
float stencil_dimension [2]
 
float mask_stencil_pos [2]
 
float mask_stencil_dimension [2]
 
struct BrushGpencilSettingsgpencil_settings
 
struct BrushCurvesSculptSettingscurves_sculpt_settings
 
int automasking_cavity_blur_steps
 
float automasking_cavity_factor
 
struct CurveMappingautomasking_cavity_curve
 

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.
Examples
/usr/src/RPM/BUILD/blender-4.3.0/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 173 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad1

char Brush::_pad1[6]

Definition at line 301 of file DNA_brush_types.h.

◆ add_col

◆ alpha

◆ area_radius_factor

float Brush::area_radius_factor

◆ automasking_boundary_edges_propagation_steps

◆ automasking_cavity_blur_steps

◆ automasking_cavity_curve

◆ automasking_cavity_factor

◆ automasking_flags

◆ automasking_start_normal_falloff

float Brush::automasking_start_normal_falloff

◆ automasking_start_normal_limit

float Brush::automasking_start_normal_limit

◆ automasking_view_normal_falloff

float Brush::automasking_view_normal_falloff

◆ automasking_view_normal_limit

float Brush::automasking_view_normal_limit

◆ autosmooth_factor

◆ blend

◆ blur_kernel_radius

int Brush::blur_kernel_radius

Definition at line 392 of file DNA_brush_types.h.

Referenced by paint_new_blur_kernel().

◆ blur_mode

int Brush::blur_mode

Definition at line 393 of file DNA_brush_types.h.

Referenced by paint_new_blur_kernel().

◆ boundary_deform_type

◆ boundary_falloff_type

◆ boundary_offset

◆ clone

◆ cloth_constraint_softbody_strength

float Brush::cloth_constraint_softbody_strength

◆ cloth_damping

float Brush::cloth_damping

Definition at line 361 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::cloth::do_cloth_brush().

◆ cloth_deform_type

◆ cloth_force_falloff_type

◆ cloth_mass

float Brush::cloth_mass

Definition at line 360 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::cloth::do_cloth_brush().

◆ cloth_sim_falloff

◆ cloth_sim_limit

◆ cloth_simulation_area_type

◆ crease_pinch_factor

float Brush::crease_pinch_factor

Definition at line 309 of file DNA_brush_types.h.

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

◆ cursor_overlay_alpha

◆ curve

struct CurveMapping* Brush::curve

Falloff curve.

Definition at line 180 of file DNA_brush_types.h.

Referenced by BKE_brush_curve_strength(), BKE_brush_gen_radial_control_imbuf(), BKE_paint_invalidate_cursor_overlay(), brush_blend_read_data(), brush_blend_write(), brush_copy_data(), brush_curve_preset_exec(), brush_curve_preset_poll(), brush_free_data(), blender::ed::sculpt_paint::expand::cache_initial_config_set(), blender::ed::sculpt_paint::calc_brush_strength_factors(), blender::ed::sculpt_paint::pose::calc_twist_deform(), blender::ed::sculpt_paint::color::do_paint_brush(), blender::ed::sculpt_paint::greasepencil::WeightPaintOperation::get_brush_settings(), blender::ed::sculpt_paint::greasepencil::init_brush(), blender::ed::sculpt_paint::boundary::init_falloff_bmesh(), blender::ed::sculpt_paint::boundary::init_falloff_grids(), blender::ed::sculpt_paint::boundary::init_falloff_mesh(), blender::ed::sculpt_paint::is_sampled_curve_valid(), blender::ed::sculpt_paint::load_tex_cursor(), blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::TintOperation::on_stroke_begin(), blender::ed::sculpt_paint::paint_stroke_new(), paint_weight_gradient_exec(), radial_control_paint_curve(), blender::ed::sculpt_paint::sample_node_surface_bmesh(), blender::ed::sculpt_paint::sample_node_surface_grids(), blender::ed::sculpt_paint::sample_node_surface_mesh(), blender::ed::sculpt_paint::pose::sculpt_pose_do_translate_deform(), blender::ed::sculpt_paint::smooth_brush_toggle_on(), blender::ed::sculpt_paint::vwpaint::smooth_brush_toggle_on(), and blender::ed::sculpt_paint::update_sampled_curve().

◆ curve_preset

◆ curves_sculpt_brush_type

◆ curves_sculpt_settings

◆ dash_ratio

float Brush::dash_ratio

Rate

Definition at line 256 of file DNA_brush_types.h.

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

◆ dash_samples

int Brush::dash_samples

◆ deform_target

◆ density

float Brush::density

Density

Definition at line 243 of file DNA_brush_types.h.

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

◆ disconnected_distance_max

float Brush::disconnected_distance_max

Definition at line 324 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::pose::ik_chain_init().

◆ elastic_deform_type

int Brush::elastic_deform_type

◆ elastic_deform_volume_preservation

float Brush::elastic_deform_volume_preservation

◆ falloff_angle

float Brush::falloff_angle

Definition at line 279 of file DNA_brush_types.h.

Referenced by vpaint_init_vpaint(), and wpaint_stroke_test_start().

◆ falloff_shape

char Brush::falloff_shape

Projection shape (sphere, circle).

Definition at line 278 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_bmesh(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_grids(), blender::ed::sculpt_paint::calc_area_normal_and_center_node_mesh(), blender::ed::sculpt_paint::calc_bmesh(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::calc_faces(), blender::ed::sculpt_paint::calc_factors_common_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh(), blender::ed::sculpt_paint::calc_factors_common_grids(), blender::ed::sculpt_paint::calc_factors_common_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::calc_grids(), calculate_average_weight(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::color::do_smear_brush_task(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::CombOperationExecutor::execute(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensityAddOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::PinchOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute(), blender::ed::sculpt_paint::auto_mask::is_constrained_by_radius(), over_mesh(), blender::ed::sculpt_paint::paint_cursor_draw_3d_view_brush_cursor_inactive(), blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init(), blender::ed::sculpt_paint::pbvh_gather_generic(), blender::ed::sculpt_paint::vwpaint::pbvh_gather_generic(), blender::ed::sculpt_paint::sample_node_surface_bmesh(), blender::ed::sculpt_paint::sample_node_surface_grids(), blender::ed::sculpt_paint::sample_node_surface_mesh(), SCULPT_stroke_get_location(), blender::ed::sculpt_paint::update_sculpt_normal(), and vpaint_do_draw().

◆ fill_threshold

float Brush::fill_threshold

Definition at line 396 of file DNA_brush_types.h.

Referenced by paint_2d_bucket_fill().

◆ flag

int Brush::flag

General purpose flags.

Definition at line 208 of file DNA_brush_types.h.

Referenced by BKE_brush_jitter_pos(), BKE_brush_use_alpha_pressure(), BKE_brush_use_locked_size(), BKE_brush_use_size_pressure(), blender::ed::sculpt_paint::brush_delta_update(), brush_painter_2d_refresh_cache(), blender::ed::greasepencil::brush_radius_at_location(), blender::ed::sculpt_paint::greasepencil::brush_radius_to_pixel_radius(), brush_strength(), blender::ed::sculpt_paint::vwpaint::brush_use_accumulate_ex(), blender::ed::sculpt_paint::calc_bmesh(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::calc_faces(), blender::ed::sculpt_paint::calc_factors_common_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh(), blender::ed::sculpt_paint::calc_factors_common_grids(), blender::ed::sculpt_paint::calc_factors_common_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::calc_grids(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::do_clay_strips_brush(), blender::ed::sculpt_paint::do_clay_thumb_brush(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::do_layer_brush(), blender::ed::sculpt_paint::do_multiplane_scrape_brush(), blender::ed::sculpt_paint::color::do_paint_brush_task(), do_projectpaint_thread(), blender::ed::sculpt_paint::color::do_smear_brush_task(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), blender::ed::sculpt_paint::dynamic_topology_update(), ED_space_image_paint_curve(), blender::ed::sculpt_paint::cloth::ensure_nodes_constraints(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::filter_plane_trim_limit_factors(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), icon_preview_imbuf_from_brush(), blender::ed::sculpt_paint::image_paint_brush_type_raycast_original(), blender::ed::sculpt_paint::image_paint_brush_type_require_inbetween_mouse_events(), initTransInfo(), blender::ed::sculpt_paint::greasepencil::is_brush_inverted(), blender::ed::sculpt_paint::need_delta_from_anchored_origin(), blender::ed::sculpt_paint::new_grow_shrink_operation(), blender::ed::sculpt_paint::new_pinch_operation(), blender::ed::sculpt_paint::new_selection_paint_operation(), blender::ed::sculpt_paint::greasepencil::DrawWeightPaintOperation::on_stroke_begin(), paint_brush_color_get(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_draw_3d_view_brush_cursor_inactive(), blender::ed::sculpt_paint::paint_cursor_update_unprojected_radius(), paint_curve_poll(), blender::ed::sculpt_paint::paint_space_stroke_enabled(), blender::ed::sculpt_paint::paint_space_stroke_spacing(), blender::ed::sculpt_paint::paint_stroke_curve_end(), blender::ed::sculpt_paint::image::ops::paint::paint_stroke_done(), blender::ed::sculpt_paint::paint_stroke_integrate_overlap(), blender::ed::sculpt_paint::paint_stroke_jitter_pos(), blender::ed::sculpt_paint::paint_stroke_line_end(), blender::ed::sculpt_paint::paint_stroke_modal(), blender::ed::sculpt_paint::paint_stroke_new(), blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step(), blender::ed::sculpt_paint::paint_stroke_use_dash(), blender::ed::sculpt_paint::paint_stroke_use_jitter(), blender::ed::sculpt_paint::paint_stroke_use_scene_spacing(), blender::ed::sculpt_paint::paint_supports_dynamic_size(), blender::ed::sculpt_paint::paint_supports_dynamic_tex_coords(), blender::ed::sculpt_paint::paint_supports_smooth_stroke(), paint_use_opacity_masking(), project_state_init(), restore_from_undo_step_if_necessary(), blender::ed::sculpt_paint::sample_node_surface_bmesh(), blender::ed::sculpt_paint::sample_node_surface_grids(), blender::ed::sculpt_paint::sample_node_surface_mesh(), SCULPT_brush_plane_offset_get(), blender::ed::sculpt_paint::sculpt_geometry_preview_lines_draw(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo(), blender::ed::sculpt_paint::vwpaint::test_brush_angle_falloff(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), blender::ed::greasepencil::toggle_weight_tool_direction(), ui_do_but_COLOR(), blender::ed::sculpt_paint::update_sculpt_normal(), blender::ed::sculpt_paint::vwpaint::use_normal(), vpaint_blend(), vpaint_init_vpaint(), and wpaint_stroke_test_start().

◆ flag2

◆ flow

float Brush::flow

Flow

Definition at line 238 of file DNA_brush_types.h.

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

◆ gpencil_brush_type

◆ gpencil_sculpt_brush_type

char Brush::gpencil_sculpt_brush_type

◆ gpencil_settings

struct BrushGpencilSettings* Brush::gpencil_settings

Definition at line 407 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings(), BKE_gpencil_brush_material_set(), BKE_grease_pencil_brush_material_get(), BKE_grease_pencil_object_material_ensure_from_active_input_brush(), BKE_grease_pencil_object_material_ensure_from_brush(), BKE_grease_pencil_object_material_from_brush_get(), blender::ed::greasepencil::boundary_to_curves(), brush_blend_read_after_liblink(), brush_blend_read_data(), brush_blend_write(), brush_copy_data(), brush_foreach_id(), brush_free_data(), blender::ed::sculpt_paint::greasepencil::brush_radius(), brush_scale_size_exec(), blender::ed::sculpt_paint::greasepencil::do_vertex_color_fill(), blender::ed::sculpt_paint::greasepencil::do_vertex_color_points(), blender::ed::sculpt_paint::greasepencil::EraseOperationExecutor::execute(), blender::ed::greasepencil::fill_strokes(), blender::ed::sculpt_paint::GreasePencilFillOpData::from_context(), blender::ed::sculpt_paint::greasepencil::get_drawings_for_painting(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::ed::sculpt_paint::grease_pencil_brush_cursor_draw(), blender::ed::sculpt_paint::grease_pencil_fill_init(), blender::ed::sculpt_paint::grease_pencil_fill_invoke(), blender::ed::greasepencil::grease_pencil_primitive_invoke(), blender::ed::sculpt_paint::greasepencil::init_brush(), blender::ed::greasepencil::keymap_grease_pencil_brush_stroke_poll(), blender::ed::greasepencil::keymap_grease_pencil_fill_tool_poll(), blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::TintOperation::on_stroke_begin(), blender::ed::sculpt_paint::greasepencil::PaintOperation::on_stroke_done(), blender::ed::sculpt_paint::greasepencil::RandomizeOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::SmoothOperation::on_stroke_extended(), blender::ed::greasepencil::paintmode_toggle_exec(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::PaintOperationExecutor(), blender::ed::greasepencil::process_image(), blender::ed::greasepencil::stroke_trim_execute(), and unpin_file_local_grease_pencil_brush_materials().

◆ gpencil_vertex_brush_type

char Brush::gpencil_vertex_brush_type

◆ gpencil_weight_brush_type

◆ gradient

◆ gradient_fill_mode

char Brush::gradient_fill_mode

Source for fill brush color gradient application.

Definition at line 269 of file DNA_brush_types.h.

Referenced by do_projectpaint_thread(), and paint_2d_gradient_fill().

◆ gradient_spacing

int Brush::gradient_spacing

◆ gradient_stroke_mode

char Brush::gradient_stroke_mode

Source for stroke color gradient application.

Definition at line 267 of file DNA_brush_types.h.

Referenced by brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::color::do_paint_brush_task(), and paint_brush_color_get().

◆ hardness

float Brush::hardness

Hardness

Definition at line 236 of file DNA_brush_types.h.

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

◆ has_unsaved_changes

char Brush::has_unsaved_changes

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 275 of file DNA_brush_types.h.

Referenced by BKE_brush_tag_unsaved_changes(), blender::ed::sculpt_paint::brush_asset_save_as_exec(), blender::ed::sculpt_paint::brush_asset_save_exec(), and brush_blend_read_data().

◆ height

float Brush::height

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

Definition at line 317 of file DNA_brush_types.h.

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

◆ icon_filepath

char Brush::icon_filepath[1024]

1024 = FILE_MAX.

Definition at line 193 of file DNA_brush_types.h.

Referenced by brush_foreach_path(), and icon_preview_imbuf_from_brush().

◆ icon_imbuf

◆ id

◆ image_brush_type

◆ input_samples

int Brush::input_samples

Number of samples used to smooth the stroke.

Definition at line 213 of file DNA_brush_types.h.

Referenced by BKE_brush_input_samples_get(), and BKE_brush_input_samples_set().

◆ jitter

float Brush::jitter

Jitter the position of the brush.

Definition at line 218 of file DNA_brush_types.h.

Referenced by BKE_brush_jitter_pos(), and blender::ed::sculpt_paint::paint_stroke_use_jitter().

◆ jitter_absolute

int Brush::jitter_absolute

Absolute jitter in pixels.

Definition at line 220 of file DNA_brush_types.h.

Referenced by BKE_brush_jitter_pos(), and blender::ed::sculpt_paint::paint_stroke_use_jitter().

◆ mask_mtex

◆ mask_overlay_alpha

int Brush::mask_overlay_alpha

◆ mask_pressure

int Brush::mask_pressure

Pressure influence for mask.

Definition at line 216 of file DNA_brush_types.h.

Referenced by BKE_brush_sample_masktex(), and brush_painter_2d_refresh_cache().

◆ mask_stencil_dimension

◆ mask_stencil_pos

◆ mask_tool

◆ mtex

◆ multiplane_scrape_angle

float Brush::multiplane_scrape_angle

◆ normal_radius_factor

◆ normal_weight

float Brush::normal_weight

◆ ob_mode

◆ overlay_flags

◆ paint_curve

◆ paint_flags

int Brush::paint_flags

◆ plane_offset

float Brush::plane_offset

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

Definition at line 263 of file DNA_brush_types.h.

Referenced by SCULPT_brush_plane_offset_get().

◆ plane_trim

float Brush::plane_trim

◆ pose_deform_type

◆ pose_ik_segments

int Brush::pose_ik_segments

◆ pose_offset

float Brush::pose_offset

◆ pose_origin_type

int Brush::pose_origin_type

Definition at line 348 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::pose::ik_chain_init().

◆ pose_smooth_iterations

int Brush::pose_smooth_iterations

Definition at line 346 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::pose::pose_brush_init().

◆ preview

PreviewImage* Brush::preview

◆ rake_factor

float Brush::rake_factor

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

Definition at line 197 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::brush_delta_update(), and blender::ed::sculpt_paint::brush_needs_rake_rotation().

◆ rate

float Brush::rate

Paint operations / second (airbrush).

Definition at line 229 of file DNA_brush_types.h.

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

◆ rgb

◆ sampling_flag

int Brush::sampling_flag

◆ sculpt_brush_type

char Brush::sculpt_brush_type

Active sculpt brush type.

Definition at line 282 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::cloth::add_constraints_for_verts(), blender::ed::sculpt_paint::area_normal_and_center_get_position_radius(), BKE_brush_has_cube_tip(), BKE_brush_sculpt_has_secondary_color(), BKE_paint_get_brush_type_from_obmode(), BKE_paint_get_brush_type_from_paintmode(), blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather(), blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::brush_dynamic_size_get(), blender::ed::sculpt_paint::brush_needs_rake_rotation(), brush_strength(), brush_stroke_init(), blender::ed::sculpt_paint::brush_uses_topology_rake(), blender::ed::sculpt_paint::auto_mask::calc_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::cloth::cloth_brush_simulation_falloff_get(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::image_paint_brush_type_require_inbetween_mouse_events(), blender::ed::sculpt_paint::image_paint_brush_type_require_location(), image_paint_brush_uses_canvas(), blender::ed::sculpt_paint::cloth::is_cloth_deform_brush(), blender::ed::sculpt_paint::auto_mask::is_constrained_by_radius(), blender::ed::sculpt_paint::mask::mask_from_boundary_exec(), blender::ed::sculpt_paint::mask::mask_from_cavity_exec(), blender::ed::sculpt_paint::need_delta_for_tip_orientation(), blender::ed::sculpt_paint::need_delta_from_anchored_origin(), blender::ed::sculpt_paint::paint_cursor_cursor_draw_3d_view_brush_cursor_active(), blender::ed::sculpt_paint::paint_cursor_draw_3d_view_brush_cursor_inactive(), paint_rake_rotation_spacing(), blender::ed::sculpt_paint::paint_space_stroke_enabled(), blender::ed::sculpt_paint::pbvh_gather_generic(), blender::ed::sculpt_paint::push_undo_nodes(), blender::ed::sculpt_paint::undo::restore_from_undo_step(), restore_from_undo_step_if_necessary(), blender::ed::sculpt_paint::sculpt_brush_needs_normal(), blender::ed::sculpt_paint::sculpt_brush_stroke_invoke(), sculpt_brush_type_name(), SCULPT_brush_type_needs_all_pbvh_nodes(), blender::ed::sculpt_paint::sculpt_is_grab_tool(), blender::ed::sculpt_paint::sculpt_needs_connectivity_info(), sculpt_needs_pbvh_pixels(), SCULPT_stroke_modifiers_check(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), blender::ed::sculpt_paint::smooth_brush_toggle_off(), blender::ed::sculpt_paint::smooth_brush_toggle_on(), blender::ed::sculpt_paint::stroke_done(), blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo(), blender::ed::sculpt_paint::stroke_test_start(), stroke_undo_begin(), stroke_undo_end(), blender::ed::sculpt_paint::stroke_update_step(), and blender::ed::sculpt_paint::update_sculpt_normal().

◆ sculpt_plane

◆ secondary_rgb

float Brush::secondary_rgb[3]

Background color.

Definition at line 253 of file DNA_brush_types.h.

Referenced by BKE_brush_secondary_color_get(), and brush_colors_flip_exec().

◆ sharp_threshold

float Brush::sharp_threshold

Definition at line 391 of file DNA_brush_types.h.

Referenced by do_projectpaint_soften(), and do_projectpaint_soften_f().

◆ size

◆ slide_deform_type

int Brush::slide_deform_type

Definition at line 381 of file DNA_brush_types.h.

◆ smear_deform_type

int Brush::smear_deform_type

◆ smooth_deform_type

int Brush::smooth_deform_type

Definition at line 369 of file DNA_brush_types.h.

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

◆ smooth_stroke_factor

float Brush::smooth_stroke_factor

Higher values limit fast changes in the stroke direction.

Definition at line 227 of file DNA_brush_types.h.

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

◆ smooth_stroke_radius

int Brush::smooth_stroke_radius

Turning radius (in pixels) for smooth stroke.

Definition at line 225 of file DNA_brush_types.h.

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

◆ snake_hook_deform_type

int Brush::snake_hook_deform_type

Definition at line 341 of file DNA_brush_types.h.

Referenced by SCULPT_brush_type_needs_all_pbvh_nodes().

◆ spacing

◆ stencil_dimension

◆ stencil_pos

◆ sub_col

float Brush::sub_col[4]

◆ surface_smooth_current_vertex

float Brush::surface_smooth_current_vertex

Definition at line 371 of file DNA_brush_types.h.

◆ surface_smooth_iterations

int Brush::surface_smooth_iterations

Definition at line 372 of file DNA_brush_types.h.

◆ surface_smooth_shape_preservation

float Brush::surface_smooth_shape_preservation

Definition at line 370 of file DNA_brush_types.h.

◆ texture_overlay_alpha

int Brush::texture_overlay_alpha

◆ texture_sample_bias

float Brush::texture_sample_bias

◆ tilt_strength_factor

float Brush::tilt_strength_factor

◆ tip_roundness

◆ tip_scale_x

◆ toggle_brush

struct Brush* Brush::toggle_brush

Definition at line 184 of file DNA_brush_types.h.

Referenced by brush_foreach_id().

◆ topology_rake_factor

float Brush::topology_rake_factor

◆ unprojected_radius

◆ vertex_brush_type

◆ weight

float Brush::weight

◆ weight_brush_type

◆ wet_mix

float Brush::wet_mix

Wet Mix

Definition at line 240 of file DNA_brush_types.h.

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

◆ wet_paint_radius_factor

float Brush::wet_paint_radius_factor

◆ wet_persistence

float Brush::wet_persistence

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