|
Blender V5.0
|
|
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().
| bool blender::bke::brush::supports_accumulate | ( | const Brush & | brush | ) |
Definition at line 1760 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_BLOB, SCULPT_BRUSH_TYPE_CLAY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLAY_THUMB, SCULPT_BRUSH_TYPE_CREASE, SCULPT_BRUSH_TYPE_DRAW, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_INFLATE, SCULPT_BRUSH_TYPE_PLANE, SCULPT_BRUSH_TYPE_ROTATE, and SCULPT_BRUSH_TYPE_SLIDE_RELAX.
Referenced by blender::ed::sculpt_paint::sculpt_update_cache_invariants().
| bool blender::bke::brush::supports_auto_smooth | ( | const Brush & | brush | ) |
Definition at line 1786 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_SMEAR, and SCULPT_BRUSH_TYPE_SMOOTH.
| 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().
| bool blender::bke::brush::supports_color | ( | const Brush & | brush | ) |
Definition at line 1863 of file brush.cc.
References ELEM, and SCULPT_BRUSH_TYPE_PAINT.
| bool blender::bke::brush::supports_dyntopo | ( | const Brush & | brush | ) |
Definition at line 1736 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_POSE, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SLIDE_RELAX, SCULPT_BRUSH_TYPE_SMEAR, SCULPT_BRUSH_TYPE_SMOOTH, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo().
| bool blender::bke::brush::supports_gravity | ( | const Brush & | brush | ) |
Definition at line 1954 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_BOUNDARY, SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, SCULPT_BRUSH_TYPE_DISPLACEMENT_SMEAR, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PAINT, SCULPT_BRUSH_TYPE_SIMPLIFY, SCULPT_BRUSH_TYPE_SMEAR, and SCULPT_BRUSH_TYPE_SMOOTH.
Referenced by blender::ed::sculpt_paint::sculpt_update_cache_invariants().
| 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().
| bool blender::bke::brush::supports_height | ( | const Brush & | brush | ) |
Definition at line 1795 of file brush.cc.
References SCULPT_BRUSH_TYPE_LAYER.
| bool blender::bke::brush::supports_inverted_direction | ( | const Brush & | brush | ) |
Definition at line 1937 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_BLOB, SCULPT_BRUSH_TYPE_CLAY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CREASE, SCULPT_BRUSH_TYPE_DRAW, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_INFLATE, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PINCH, SCULPT_BRUSH_TYPE_PLANE, and SCULPT_BRUSH_TYPE_SMOOTH.
| bool blender::bke::brush::supports_jitter | ( | const Brush & | brush | ) |
Definition at line 1807 of file brush.cc.
References BRUSH_ANCHORED, BRUSH_DRAG_DOT, ELEM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.
| bool blender::bke::brush::supports_normal_weight | ( | const Brush & | brush | ) |
Definition at line 1816 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_ELASTIC_DEFORM, SCULPT_BRUSH_TYPE_GRAB, and SCULPT_BRUSH_TYPE_SNAKE_HOOK.
Referenced by blender::ed::sculpt_paint::sculpt_brush_needs_normal(), and blender::ed::sculpt_paint::sculpt_update_cache_invariants().
| 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.
| bool blender::bke::brush::supports_pinch_factor | ( | const Brush & | brush | ) |
Definition at line 1831 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_BLOB, SCULPT_BRUSH_TYPE_CREASE, and SCULPT_BRUSH_TYPE_SNAKE_HOOK.
| 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.
| 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.
| bool blender::bke::brush::supports_plane_offset | ( | const Brush & | brush | ) |
Definition at line 1838 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_CLAY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLAY_THUMB, and SCULPT_BRUSH_TYPE_PLANE.
| 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().
| bool blender::bke::brush::supports_random_texture_angle | ( | const Brush & | brush | ) |
Definition at line 1846 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.
| bool blender::bke::brush::supports_sculpt_plane | ( | const Brush & | brush | ) |
Definition at line 1854 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_INFLATE, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_PINCH, and SCULPT_BRUSH_TYPE_SMOOTH.
| bool blender::bke::brush::supports_secondary_cursor_color | ( | const Brush & | brush | ) |
Definition at line 1867 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_BLOB, SCULPT_BRUSH_TYPE_CLAY, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLAY_THUMB, SCULPT_BRUSH_TYPE_CREASE, SCULPT_BRUSH_TYPE_DRAW, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_INFLATE, SCULPT_BRUSH_TYPE_LAYER, SCULPT_BRUSH_TYPE_MASK, and SCULPT_BRUSH_TYPE_PINCH.
Referenced by blender::ed::sculpt_paint::paint_cursor_context_init().
| 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().
| bool blender::bke::brush::supports_smooth_stroke | ( | const Brush & | brush | ) |
Definition at line 1882 of file brush.cc.
References BRUSH_ANCHORED, BRUSH_CURVE, BRUSH_DRAG_DOT, BRUSH_LINE, ELEM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SNAKE_HOOK, and SCULPT_BRUSH_TYPE_THUMB.
| bool blender::bke::brush::supports_space_attenuation | ( | const Brush & | brush | ) |
Definition at line 1892 of file brush.cc.
References BRUSH_CURVE, BRUSH_LINE, BRUSH_SPACE, ELEM, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SMOOTH, and SCULPT_BRUSH_TYPE_SNAKE_HOOK.
| bool blender::bke::brush::supports_strength_pressure | ( | const Brush & | brush | ) |
Definition at line 1921 of file brush.cc.
References is_grab_tool().
| bool blender::bke::brush::supports_tilt | ( | const Brush & | brush | ) |
Definition at line 1967 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_DRAW, SCULPT_BRUSH_TYPE_DRAW_SHARP, and SCULPT_BRUSH_TYPE_PLANE.
Referenced by blender::ed::sculpt_paint::paint_cursor_drawing_setup_cursor_space().
| bool blender::bke::brush::supports_topology_rake | ( | const Brush & | brush | ) |
Definition at line 1775 of file brush.cc.
References ELEM, SCULPT_BRUSH_TYPE_DISPLACEMENT_ERASER, SCULPT_BRUSH_TYPE_DRAW_SHARP, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_MASK, SCULPT_BRUSH_TYPE_ROTATE, SCULPT_BRUSH_TYPE_SLIDE_RELAX, and SCULPT_BRUSH_TYPE_THUMB.
Referenced by blender::ed::sculpt_paint::brush_uses_topology_rake().