|
Blender V5.3
|
| void blender::bke::brush::common_pressure_curves_init | ( | Brush & | brush | ) |
Definition at line 1549 of file brush.cc.
References blender::BKE_curvemapping_init(), and common_pressure_curves_init().
Referenced by blender::ed::sculpt_paint::brush_stroke_init(), common_pressure_curves_init(), blender::ed::sculpt_paint::PaintStroke::PaintStroke(), and blender::ed::sculpt_paint::vwpaint::smooth_brush_toggle_on().
| bool blender::bke::brush::implements_3d_texture_paint | ( | const Brush & | brush | ) |
Definition at line 1850 of file brush.cc.
References blender::IMAGE_PAINT_BRUSH_TYPE_DRAW, blender::IMAGE_PAINT_BRUSH_TYPE_MASK, and implements_3d_texture_paint().
Referenced by blender::ed::sculpt_paint::image::ops::paint::create_paint_stroke(), blender::ed::sculpt_paint::image::ops::paint::get_paint_stroke(), implements_3d_texture_paint(), blender::ed::sculpt_paint::paint_stroke_use_scene_spacing(), blender::ed::sculpt_paint::paint_use_2d_cursor(), blender::ed::sculpt_paint::image::ops::paint::should_check_before_stroke_creation(), blender::bke::paint::supports_scene_size(), and blender::bke::paint::supports_symmetry_tiling().
|
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 1880 of file brush.cc.
References blender::BRUSH_CLOTH_DEFORM_GRAB, ELEM, is_grab_tool(), blender::SCULPT_BRUSH_TYPE_BOUNDARY, blender::SCULPT_BRUSH_TYPE_CLOTH, blender::SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, blender::SCULPT_BRUSH_TYPE_GRAB, blender::SCULPT_BRUSH_TYPE_POSE, blender::SCULPT_BRUSH_TYPE_ROTATE, blender::SCULPT_BRUSH_TYPE_SNAKE_HOOK, and blender::SCULPT_BRUSH_TYPE_THUMB.
Referenced by is_grab_tool(), supports_auto_smooth_pressure(), supports_hardness_pressure(), supports_jitter(), supports_random_texture_angle(), supports_size_pressure(), supports_smooth_stroke(), supports_space_attenuation(), and supports_strength_pressure().
|
static |
Definition at line 1867 of file brush.cc.
References ELEM, is_paint_tool(), blender::SCULPT_BRUSH_TYPE_BLUR, blender::SCULPT_BRUSH_TYPE_PAINT, and blender::SCULPT_BRUSH_TYPE_SMEAR.
Referenced by is_paint_tool(), supports_auto_smooth(), supports_dyntopo(), and supports_gravity().
Definition at line 1841 of file brush.cc.
References blender::BLI_assert(), invert(), normal_weight_get(), and supports_normal_weight().
Referenced by blender::ed::sculpt_paint::grab_delta_get(), normal_weight_get(), blender::ed::sculpt_paint::sculpt_brush_needs_normal(), and blender::ed::sculpt_paint::update_sculpt_normal().
| bool blender::bke::brush::supports_accumulate | ( | const Brush & | brush | ) |
Definition at line 1916 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_BLOB, blender::SCULPT_BRUSH_TYPE_CLAY, blender::SCULPT_BRUSH_TYPE_CLAY_STRIPS, blender::SCULPT_BRUSH_TYPE_CLAY_THUMB, blender::SCULPT_BRUSH_TYPE_CREASE, blender::SCULPT_BRUSH_TYPE_DRAW, blender::SCULPT_BRUSH_TYPE_DRAW_SHARP, blender::SCULPT_BRUSH_TYPE_INFLATE, blender::SCULPT_BRUSH_TYPE_PLANE, blender::SCULPT_BRUSH_TYPE_ROTATE, blender::SCULPT_BRUSH_TYPE_SCENE_PROJECT, blender::SCULPT_BRUSH_TYPE_SLIDE_RELAX, and supports_accumulate().
Referenced by blender::ed::sculpt_paint::stroke_cache_init(), and supports_accumulate().
| bool blender::bke::brush::supports_auto_smooth | ( | const Brush & | brush | ) |
Definition at line 1943 of file brush.cc.
References ELEM, is_paint_tool(), blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_SMOOTH, and supports_auto_smooth().
Referenced by supports_auto_smooth().
| bool blender::bke::brush::supports_auto_smooth_pressure | ( | const Brush & | brush | ) |
Definition at line 2065 of file brush.cc.
References is_grab_tool(), and supports_auto_smooth_pressure().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and supports_auto_smooth_pressure().
| bool blender::bke::brush::supports_color | ( | const Brush & | brush | ) |
Definition at line 2024 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_PAINT, and supports_color().
Referenced by supports_color().
| bool blender::bke::brush::supports_dyntopo | ( | const Brush & | brush | ) |
Definition at line 1893 of file brush.cc.
References ELEM, is_paint_tool(), blender::SCULPT_BRUSH_TYPE_BOUNDARY, blender::SCULPT_BRUSH_TYPE_CLOTH, blender::SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, blender::SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::SCULPT_BRUSH_TYPE_DRAW_SHARP, blender::SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, blender::SCULPT_BRUSH_TYPE_GRAB, blender::SCULPT_BRUSH_TYPE_LAYER, blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_POSE, blender::SCULPT_BRUSH_TYPE_ROTATE, blender::SCULPT_BRUSH_TYPE_SLIDE_RELAX, blender::SCULPT_BRUSH_TYPE_SMOOTH, blender::SCULPT_BRUSH_TYPE_THUMB, and supports_dyntopo().
Referenced by blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo(), and supports_dyntopo().
| bool blender::bke::brush::supports_gravity | ( | const Brush & | brush | ) |
Definition at line 2091 of file brush.cc.
References ELEM, is_paint_tool(), blender::SCULPT_BRUSH_TYPE_BOUNDARY, blender::SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, blender::SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR, blender::SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_SIMPLIFY, blender::SCULPT_BRUSH_TYPE_SMOOTH, and supports_gravity().
Referenced by blender::ed::sculpt_paint::stroke_cache_init(), and supports_gravity().
| bool blender::bke::brush::supports_hardness | ( | const Brush & | brush | ) |
Definition at line 1959 of file brush.cc.
References blender::SCULPT_BRUSH_TYPE_POSE, and supports_hardness().
Referenced by supports_hardness().
| bool blender::bke::brush::supports_hardness_pressure | ( | const Brush & | brush | ) |
Definition at line 2069 of file brush.cc.
References is_grab_tool(), and supports_hardness_pressure().
Referenced by blender::ed::sculpt_paint::stroke_cache_update(), and supports_hardness_pressure().
| bool blender::bke::brush::supports_height | ( | const Brush & | brush | ) |
Definition at line 1963 of file brush.cc.
References blender::SCULPT_BRUSH_TYPE_LAYER, and supports_height().
Referenced by supports_height().
| bool blender::bke::brush::supports_inverted_direction | ( | const Brush & | brush | ) |
Definition at line 2073 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_BLOB, blender::SCULPT_BRUSH_TYPE_CLAY, blender::SCULPT_BRUSH_TYPE_CLAY_STRIPS, blender::SCULPT_BRUSH_TYPE_CREASE, blender::SCULPT_BRUSH_TYPE_DRAW, blender::SCULPT_BRUSH_TYPE_DRAW_SHARP, blender::SCULPT_BRUSH_TYPE_INFLATE, blender::SCULPT_BRUSH_TYPE_LAYER, blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_PINCH, blender::SCULPT_BRUSH_TYPE_PLANE, blender::SCULPT_BRUSH_TYPE_SCENE_PROJECT, blender::SCULPT_BRUSH_TYPE_SMOOTH, and supports_inverted_direction().
Referenced by supports_inverted_direction().
| bool blender::bke::brush::supports_jitter | ( | const Brush & | brush | ) |
Definition at line 1975 of file brush.cc.
References blender::BRUSH_STROKE_ANCHORED, blender::BRUSH_STROKE_DRAG_DOT, ELEM, is_grab_tool(), and supports_jitter().
Referenced by supports_jitter().
| bool blender::bke::brush::supports_normal_radius | ( | const Brush & | brush | ) |
Definition at line 1949 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_POSE, and supports_normal_radius().
Referenced by supports_normal_radius().
| bool blender::bke::brush::supports_normal_weight | ( | const Brush & | brush | ) |
Definition at line 1980 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, blender::SCULPT_BRUSH_TYPE_GRAB, blender::SCULPT_BRUSH_TYPE_SNAKE_HOOK, and supports_normal_weight().
Referenced by normal_weight_get(), blender::ed::sculpt_paint::sculpt_brush_needs_normal(), and supports_normal_weight().
| bool blender::bke::brush::supports_persistence | ( | const Brush & | brush | ) |
Definition at line 1991 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_CLOTH, blender::SCULPT_BRUSH_TYPE_LAYER, and supports_persistence().
Referenced by supports_persistence().
| bool blender::bke::brush::supports_pinch_factor | ( | const Brush & | brush | ) |
Definition at line 1995 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_BLOB, blender::SCULPT_BRUSH_TYPE_CREASE, blender::SCULPT_BRUSH_TYPE_SNAKE_HOOK, and supports_pinch_factor().
Referenced by supports_pinch_factor().
| bool blender::bke::brush::supports_plane_depth | ( | const Brush & | brush | ) |
Definition at line 1971 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_PLANE, and supports_plane_depth().
Referenced by supports_plane_depth().
| bool blender::bke::brush::supports_plane_height | ( | const Brush & | brush | ) |
Definition at line 1967 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_PLANE, and supports_plane_height().
Referenced by supports_plane_height().
| bool blender::bke::brush::supports_plane_offset | ( | const Brush & | brush | ) |
Definition at line 2002 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_CLAY, blender::SCULPT_BRUSH_TYPE_CLAY_STRIPS, blender::SCULPT_BRUSH_TYPE_CLAY_THUMB, blender::SCULPT_BRUSH_TYPE_PLANE, and supports_plane_offset().
Referenced by supports_plane_offset().
| bool blender::bke::brush::supports_rake_factor | ( | const Brush & | brush | ) |
Definition at line 1987 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_SNAKE_HOOK, and supports_rake_factor().
Referenced by blender::ed::sculpt_paint::brush_needs_rake_rotation(), and supports_rake_factor().
| bool blender::bke::brush::supports_random_texture_angle | ( | const Brush & | brush | ) |
Definition at line 2010 of file brush.cc.
References is_grab_tool(), and supports_random_texture_angle().
Referenced by supports_random_texture_angle().
| bool blender::bke::brush::supports_sculpt_plane | ( | const Brush & | brush | ) |
Definition at line 2014 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_INFLATE, blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_PINCH, blender::SCULPT_BRUSH_TYPE_POSE, blender::SCULPT_BRUSH_TYPE_SMOOTH, and supports_sculpt_plane().
Referenced by supports_sculpt_plane().
| bool blender::bke::brush::supports_secondary_cursor_color | ( | const Brush & | brush | ) |
Definition at line 2028 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_BLOB, blender::SCULPT_BRUSH_TYPE_CLAY, blender::SCULPT_BRUSH_TYPE_CLAY_STRIPS, blender::SCULPT_BRUSH_TYPE_CLAY_THUMB, blender::SCULPT_BRUSH_TYPE_CREASE, blender::SCULPT_BRUSH_TYPE_DRAW, blender::SCULPT_BRUSH_TYPE_DRAW_SHARP, blender::SCULPT_BRUSH_TYPE_INFLATE, blender::SCULPT_BRUSH_TYPE_LAYER, blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_PINCH, and supports_secondary_cursor_color().
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init(), and supports_secondary_cursor_color().
| bool blender::bke::brush::supports_size_pressure | ( | const Brush & | brush | ) |
Definition at line 2061 of file brush.cc.
References is_grab_tool(), and supports_size_pressure().
Referenced by blender::ed::sculpt_paint::paint_supports_dynamic_size(), and supports_size_pressure().
| bool blender::bke::brush::supports_smooth_stroke | ( | const Brush & | brush | ) |
Definition at line 2043 of file brush.cc.
References blender::BRUSH_STROKE_ANCHORED, blender::BRUSH_STROKE_CURVE, blender::BRUSH_STROKE_DRAG_DOT, blender::BRUSH_STROKE_LINE, ELEM, is_grab_tool(), and supports_smooth_stroke().
Referenced by supports_smooth_stroke().
| bool blender::bke::brush::supports_space_attenuation | ( | const Brush & | brush | ) |
Definition at line 2052 of file brush.cc.
References blender::BRUSH_STROKE_CURVE, blender::BRUSH_STROKE_LINE, blender::BRUSH_STROKE_SPACE, ELEM, is_grab_tool(), and supports_space_attenuation().
Referenced by supports_space_attenuation().
| bool blender::bke::brush::supports_strength_pressure | ( | const Brush & | brush | ) |
Definition at line 2057 of file brush.cc.
References is_grab_tool(), and supports_strength_pressure().
Referenced by supports_strength_pressure().
| bool blender::bke::brush::supports_tilt | ( | const Brush & | brush | ) |
Definition at line 2103 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_CLAY_STRIPS, blender::SCULPT_BRUSH_TYPE_DRAW, blender::SCULPT_BRUSH_TYPE_DRAW_SHARP, blender::SCULPT_BRUSH_TYPE_PLANE, and supports_tilt().
Referenced by blender::ed::sculpt_paint::cursor_space_drawing_setup(), and supports_tilt().
| bool blender::bke::brush::supports_tip_roundness | ( | const Brush & | brush | ) |
Definition at line 1955 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_CLAY_STRIPS, blender::SCULPT_BRUSH_TYPE_PAINT, and supports_tip_roundness().
Referenced by blender::BKE_brush_has_cube_tip(), and supports_tip_roundness().
| bool blender::bke::brush::supports_topology_rake | ( | const Brush & | brush | ) |
Definition at line 1932 of file brush.cc.
References ELEM, blender::SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, blender::SCULPT_BRUSH_TYPE_DRAW_SHARP, blender::SCULPT_BRUSH_TYPE_GRAB, blender::SCULPT_BRUSH_TYPE_MASK, blender::SCULPT_BRUSH_TYPE_ROTATE, blender::SCULPT_BRUSH_TYPE_SLIDE_RELAX, blender::SCULPT_BRUSH_TYPE_THUMB, and supports_topology_rake().
Referenced by blender::ed::sculpt_paint::brush_uses_topology_rake(), and supports_topology_rake().