Blender V5.0
blender::bke::brush Namespace Reference

Functions

bool supports_dyntopo (const Brush &brush)
bool supports_accumulate (const Brush &brush)
bool supports_topology_rake (const Brush &brush)
bool supports_auto_smooth (const Brush &brush)
bool supports_height (const Brush &brush)
bool supports_plane_height (const Brush &brush)
bool supports_plane_depth (const Brush &brush)
bool supports_jitter (const Brush &brush)
bool supports_normal_weight (const Brush &brush)
bool supports_rake_factor (const Brush &brush)
bool supports_persistence (const Brush &brush)
bool supports_pinch_factor (const Brush &brush)
bool supports_plane_offset (const Brush &brush)
bool supports_random_texture_angle (const Brush &brush)
bool supports_sculpt_plane (const Brush &brush)
bool supports_color (const Brush &brush)
bool supports_secondary_cursor_color (const Brush &brush)
bool supports_smooth_stroke (const Brush &brush)
bool supports_space_attenuation (const Brush &brush)
bool supports_strength_pressure (const Brush &brush)
bool supports_size_pressure (const Brush &brush)
bool supports_auto_smooth_pressure (const Brush &brush)
bool supports_hardness_pressure (const Brush &brush)
bool supports_inverted_direction (const Brush &brush)
bool supports_gravity (const Brush &brush)
bool supports_tilt (const Brush &brush)
static bool is_grab_tool (const Brush &brush)

Function Documentation

◆ is_grab_tool()

bool blender::bke::brush::is_grab_tool ( const Brush & brush)
static

A helper method for classifying a certain subset of brush types.

Certain sculpt deformations are 'grab-like' in that they behave as if they have an anchored start point.

Definition at line 1908 of file brush.cc.

References BRUSH_CLOTH_DEFORM_GRAB, ELEM, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.

Referenced by supports_auto_smooth_pressure(), supports_hardness_pressure(), supports_size_pressure(), and supports_strength_pressure().

◆ supports_accumulate()

◆ supports_auto_smooth()

bool blender::bke::brush::supports_auto_smooth ( const Brush & brush)

◆ supports_auto_smooth_pressure()

bool blender::bke::brush::supports_auto_smooth_pressure ( const Brush & brush)

Definition at line 1929 of file brush.cc.

References is_grab_tool().

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

◆ supports_color()

bool blender::bke::brush::supports_color ( const Brush & brush)

Definition at line 1863 of file brush.cc.

References ELEM, and SCULPT_BRUSH_TYPE_PAINT.

◆ supports_dyntopo()

◆ supports_gravity()

◆ supports_hardness_pressure()

bool blender::bke::brush::supports_hardness_pressure ( const Brush & brush)

Definition at line 1933 of file brush.cc.

References is_grab_tool().

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

◆ supports_height()

bool blender::bke::brush::supports_height ( const Brush & brush)

Definition at line 1795 of file brush.cc.

References SCULPT_BRUSH_TYPE_LAYER.

◆ supports_inverted_direction()

◆ supports_jitter()

bool blender::bke::brush::supports_jitter ( const Brush & brush)

◆ supports_normal_weight()

◆ supports_persistence()

bool blender::bke::brush::supports_persistence ( const Brush & brush)

Definition at line 1827 of file brush.cc.

References ELEM, SCULPT_BRUSH_TYPE_CLOTH, and SCULPT_BRUSH_TYPE_LAYER.

◆ supports_pinch_factor()

bool blender::bke::brush::supports_pinch_factor ( const Brush & brush)

◆ supports_plane_depth()

bool blender::bke::brush::supports_plane_depth ( const Brush & brush)

Definition at line 1803 of file brush.cc.

References ELEM, and SCULPT_BRUSH_TYPE_PLANE.

◆ supports_plane_height()

bool blender::bke::brush::supports_plane_height ( const Brush & brush)

Definition at line 1799 of file brush.cc.

References ELEM, and SCULPT_BRUSH_TYPE_PLANE.

◆ supports_plane_offset()

bool blender::bke::brush::supports_plane_offset ( const Brush & brush)

◆ supports_rake_factor()

bool blender::bke::brush::supports_rake_factor ( const Brush & brush)

Definition at line 1823 of file brush.cc.

References ELEM, and SCULPT_BRUSH_TYPE_SNAKE_HOOK.

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

◆ supports_random_texture_angle()

bool blender::bke::brush::supports_random_texture_angle ( const Brush & brush)

◆ supports_sculpt_plane()

bool blender::bke::brush::supports_sculpt_plane ( const Brush & brush)

◆ supports_secondary_cursor_color()

◆ supports_size_pressure()

bool blender::bke::brush::supports_size_pressure ( const Brush & brush)

Definition at line 1925 of file brush.cc.

References is_grab_tool().

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

◆ supports_smooth_stroke()

bool blender::bke::brush::supports_smooth_stroke ( const Brush & brush)

◆ supports_space_attenuation()

bool blender::bke::brush::supports_space_attenuation ( const Brush & brush)

◆ supports_strength_pressure()

bool blender::bke::brush::supports_strength_pressure ( const Brush & brush)

Definition at line 1921 of file brush.cc.

References is_grab_tool().

◆ supports_tilt()

bool blender::bke::brush::supports_tilt ( const Brush & brush)

◆ supports_topology_rake()