Blender V4.5
Brush Struct Reference

#include <DNA_brush_types.h>

Public Attributes

ID id
 
struct CurveMappingcurve
 
struct MTex mtex
 
struct MTex mask_mtex
 
struct Brush *toggle_brush DNA_DEPRECATED
 
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]
 
int color_jitter_flag
 
float hsv_jitter [3]
 
struct CurveMappingcurve_rand_hue
 
struct CurveMappingcurve_rand_saturation
 
struct CurveMappingcurve_rand_value
 
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 [10]
 
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 plane_height
 
float plane_depth
 
float stabilize_normal
 
float stabilize_plane
 
int plane_inversion_mode
 
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.5.8/source/blender/blenkernel/BKE_grease_pencil.hh.

Definition at line 166 of file DNA_brush_types.h.

Member Data Documentation

◆ _pad1

char Brush::_pad1[10]

Definition at line 305 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

int Brush::automasking_cavity_blur_steps

◆ automasking_cavity_curve

◆ automasking_cavity_factor

float Brush::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

float Brush::autosmooth_factor

◆ blend

◆ blur_kernel_radius

int Brush::blur_kernel_radius

Definition at line 403 of file DNA_brush_types.h.

Referenced by paint_new_blur_kernel().

◆ blur_mode

int Brush::blur_mode

Definition at line 404 of file DNA_brush_types.h.

Referenced by paint_new_blur_kernel().

◆ boundary_deform_type

◆ boundary_falloff_type

◆ boundary_offset

◆ cloth_constraint_softbody_strength

float Brush::cloth_constraint_softbody_strength

◆ cloth_damping

float Brush::cloth_damping

Definition at line 372 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 371 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

◆ color_jitter_flag

int Brush::color_jitter_flag

◆ crease_pinch_factor

float Brush::crease_pinch_factor

◆ cursor_overlay_alpha

◆ curve

struct CurveMapping* Brush::curve

Falloff curve.

Definition at line 176 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::color::do_paint_brush_task(), 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::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_grids(), blender::ed::sculpt_paint::brushes::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

◆ curve_rand_hue

◆ curve_rand_saturation

◆ curve_rand_value

◆ curves_sculpt_brush_type

◆ curves_sculpt_settings

◆ dash_ratio

float Brush::dash_ratio

Rate

Definition at line 260 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 247 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 335 of file DNA_brush_types.h.

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

◆ DNA_DEPRECATED

struct Brush* toggle_brush Brush::DNA_DEPRECATED

Definition at line 181 of file DNA_brush_types.h.

◆ 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 283 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 282 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::brushes::calc_bmesh(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::brushes::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::brushes::calc_grids(), blender::ed::sculpt_paint::brushes::clay_strips::calc_node_mask(), blender::ed::sculpt_paint::brushes::plane::calc_node_mask(), calculate_average_color(), calculate_average_weight(), 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::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_grids(), blender::ed::sculpt_paint::brushes::sample_node_surface_mesh(), blender::ed::sculpt_paint::stroke_get_location_bvh(), blender::ed::sculpt_paint::update_sculpt_normal(), and vpaint_do_draw().

◆ fill_threshold

float Brush::fill_threshold

Definition at line 407 of file DNA_brush_types.h.

Referenced by paint_2d_bucket_fill().

◆ flag

int Brush::flag

General purpose flags.

Definition at line 204 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_flip(), brush_painter_2d_refresh_cache(), blender::ed::sculpt_paint::brush_plane_offset_get(), blender::ed::greasepencil::brush_radius_at_location(), blender::ed::sculpt_paint::greasepencil::brush_radius_to_pixel_radius(), blender::ed::sculpt_paint::vwpaint::brush_use_accumulate_ex(), blender::ed::sculpt_paint::brushes::calc_bmesh(), blender::ed::sculpt_paint::calc_brush_node_mask(), blender::ed::sculpt_paint::calc_brush_plane(), blender::ed::sculpt_paint::brushes::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::brushes::calc_grids(), blender::ed::sculpt_paint::greasepencil::create_fill_guide_brush(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::brushes::do_clay_thumb_brush(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::brushes::do_layer_brush(), blender::ed::sculpt_paint::brushes::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(), blender::ed::transform::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_2d_do_making_brush(), paint_2d_lift_soften(), 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::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_grids(), blender::ed::sculpt_paint::brushes::sample_node_surface_mesh(), 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::bke::brush::supports_jitter(), blender::bke::brush::supports_smooth_stroke(), blender::bke::brush::supports_space_attenuation(), 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_exec(), 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 242 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 418 of file DNA_brush_types.h.

Referenced by BKE_brush_init_gpencil_settings(), BKE_gpencil_brush_material_set(), BKE_grease_pencil_object_material_alt_ensure_from_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::brush_using_vertex_color(), blender::ed::sculpt_paint::greasepencil::create_fill_guide_brush(), do_convert_gp_jitter_flags(), do_version_convert_gp_jitter_values(), 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::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(), grease_pencil_object_material_ensure_from_brush_pinned(), 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::render_strokes(), blender::ed::greasepencil::stroke_trim_execute(), TEST_F(), 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 273 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 271 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 240 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 279 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 321 of file DNA_brush_types.h.

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

◆ hsv_jitter

float Brush::hsv_jitter[3]

◆ icon_filepath

char Brush::icon_filepath[1024]

Definition at line 189 of file DNA_brush_types.h.

Referenced by brush_foreach_path(), and icon_preview_imbuf_from_brush().

◆ icon_imbuf

◆ id

ID Brush::id

Definition at line 173 of file DNA_brush_types.h.

Referenced by asset_reference_create_from_brush(), BKE_brush_delete(), BKE_brush_duplicate(), BKE_paint_brush_set(), BKE_paint_eraser_brush_set(), blender::ed::sculpt_paint::brush_asset_delete_exec(), blender::ed::sculpt_paint::brush_asset_delete_poll(), blender::ed::sculpt_paint::brush_asset_edit_metadata_exec(), blender::ed::sculpt_paint::brush_asset_edit_metadata_poll(), blender::ed::sculpt_paint::brush_asset_load_preview_exec(), brush_asset_metadata_ensure(), blender::ed::sculpt_paint::brush_asset_revert_exec(), blender::ed::sculpt_paint::brush_asset_revert_poll(), blender::ed::sculpt_paint::brush_asset_save_as_exec(), blender::ed::sculpt_paint::brush_asset_save_exec(), blender::ed::sculpt_paint::brush_asset_save_poll(), brush_blend_write(), brush_copy_data(), brush_init_data(), brush_make_local(), buttons_texture_users_from_context(), blender::ed::sculpt_paint::get_asset_library_reference(), blender::ed::greasepencil::grease_pencil_primitive_cancel_opacity(), blender::ed::greasepencil::grease_pencil_primitive_cancel_radius(), blender::ed::greasepencil::grease_pencil_primitive_change_opacity(), blender::ed::greasepencil::grease_pencil_primitive_change_radius(), blender::ed::greasepencil::grease_pencil_primitive_init_opacity(), blender::ed::greasepencil::grease_pencil_primitive_init_radius(), icon_preview_imbuf_from_brush(), paint_brush_update_from_asset_reference(), paint_eraser_brush_set_from_asset_reference(), paintcurve_for_brush_add(), TEST_F(), TEST_F(), toolsystem_main_brush_binding_update_from_active(), and ui_do_but_COLOR().

◆ image_brush_type

◆ input_samples

int Brush::input_samples

Number of samples used to smooth the stroke.

Definition at line 209 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 214 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 216 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 212 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_depth

float Brush::plane_depth

◆ plane_height

float Brush::plane_height

◆ plane_inversion_mode

int Brush::plane_inversion_mode

◆ plane_offset

float Brush::plane_offset

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

Definition at line 267 of file DNA_brush_types.h.

Referenced by blender::ed::sculpt_paint::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 359 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 357 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 193 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 225 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 286 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_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(), brush_strength(), brush_stroke_init(), blender::ed::sculpt_paint::brush_type_needs_all_pbvh_nodes(), blender::ed::sculpt_paint::brush_uses_vector_displacement(), blender::ed::sculpt_paint::calc_brush_node_mask(), blender::ed::sculpt_paint::calc_brush_plane(), 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(), 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::stroke_test_start(), stroke_undo_begin(), stroke_undo_end(), blender::ed::sculpt_paint::stroke_update_step(), blender::bke::brush::supports_accumulate(), blender::bke::brush::supports_auto_smooth(), blender::bke::brush::supports_color(), blender::bke::brush::supports_dyntopo(), blender::bke::brush::supports_gravity(), blender::bke::brush::supports_height(), blender::bke::brush::supports_inverted_direction(), blender::bke::brush::supports_jitter(), blender::bke::brush::supports_normal_weight(), blender::bke::brush::supports_persistence(), blender::bke::brush::supports_pinch_factor(), blender::bke::brush::supports_plane_depth(), blender::bke::brush::supports_plane_height(), blender::bke::brush::supports_plane_offset(), blender::bke::brush::supports_rake_factor(), blender::bke::brush::supports_random_texture_angle(), blender::bke::brush::supports_sculpt_plane(), blender::bke::brush::supports_secondary_cursor_color(), blender::bke::brush::supports_smooth_stroke(), blender::bke::brush::supports_space_attenuation(), blender::bke::brush::supports_strength_pressure(), blender::bke::brush::supports_tilt(), blender::bke::brush::supports_topology_rake(), and blender::ed::sculpt_paint::update_sculpt_normal().

◆ sculpt_plane

◆ secondary_rgb

float Brush::secondary_rgb[3]

Background color.

Definition at line 257 of file DNA_brush_types.h.

Referenced by BKE_brush_secondary_color_get(), and brush_colors_flip_exec().

◆ sharp_threshold

float Brush::sharp_threshold

◆ size

◆ slide_deform_type

int Brush::slide_deform_type

Definition at line 392 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 380 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 223 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 221 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

◆ spacing

◆ stabilize_normal

float Brush::stabilize_normal

Definition at line 326 of file DNA_brush_types.h.

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

◆ stabilize_plane

float Brush::stabilize_plane

Definition at line 327 of file DNA_brush_types.h.

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

◆ stencil_dimension

◆ stencil_pos

◆ sub_col

float Brush::sub_col[4]

◆ surface_smooth_current_vertex

float Brush::surface_smooth_current_vertex

Definition at line 382 of file DNA_brush_types.h.

◆ surface_smooth_iterations

int Brush::surface_smooth_iterations

Definition at line 383 of file DNA_brush_types.h.

◆ surface_smooth_shape_preservation

float Brush::surface_smooth_shape_preservation

Definition at line 381 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

◆ tip_roundness

◆ tip_scale_x

◆ 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 244 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: