Blender V5.3
blender::ed::sculpt_paint::vwpaint Namespace Reference

Functions

Shared vertex/weight paint code.
bool test_brush_angle_falloff (const Brush &brush, const float angle_cos)
bool use_normal (const VPaint &vp)
bool brush_use_accumulate_ex (const Brush &brush, const eObjectMode ob_mode)
bool brush_use_accumulate (const VPaint &vp)
void init_stroke (const wmOperator &op, Main &main, Paint &paint, Depsgraph &depsgraph, Object &ob)
void update_sculpt_normal (const Depsgraph &depsgraph, const Object &ob, const VPaint &vp, const Brush &brush, const IndexMask node_mask)
bool mode_toggle_poll_test (bContext *C)
void smooth_brush_toggle_off (Paint *paint, StrokeCache *cache)
StrokeToggleSettings create_toggle_settings (const wmOperator &op, Main &bmain, Paint &paint)
void update_cache_invariants (VPaint &vp, SculptSession &ss, wmOperator *op, const float mval[2])
void update_cache_variants (Depsgraph &depsgraph, ViewContext &vc, VPaint &vp, const PaintMode paint_mode, Object &ob, Base &base, const PaintStroke::StrokeStep &stroke_step)
void get_brush_alpha_data (const SculptSession &ss, const Paint &paint, const Brush &brush, float *r_brush_size_pressure, float *r_brush_alpha_value, float *r_brush_alpha_pressure)
void smooth_brush_toggle_on (Main *bmain, Paint *paint, StrokeToggleSettings &toggle_settings)

Function Documentation

◆ brush_use_accumulate()

◆ brush_use_accumulate_ex()

bool blender::ed::sculpt_paint::vwpaint::brush_use_accumulate_ex ( const Brush & brush,
const eObjectMode ob_mode )

◆ create_toggle_settings()

◆ get_brush_alpha_data()

◆ init_stroke()

◆ mode_toggle_poll_test()

◆ smooth_brush_toggle_off()

◆ smooth_brush_toggle_on()

◆ test_brush_angle_falloff()

◆ update_cache_invariants()

◆ update_cache_variants()

void blender::ed::sculpt_paint::vwpaint::update_cache_variants ( Depsgraph & depsgraph,
ViewContext & vc,
VPaint & vp,
const PaintMode paint_mode,
Object & ob,
Base & base,
const PaintStroke::StrokeStep & stroke_step )
See also
#stroke_cache_update for a similar implementation for Sculpt Mode

Initialize the stroke cache variants from operator properties.

Definition at line 269 of file paint_vertex.cc.

References blender::BKE_brush_radius_get(), blender::BKE_brush_unprojected_size_set(), blender::BKE_brush_use_size_pressure(), blender::BKE_curvemapping_evaluateF(), blender::BKE_paint_brush(), blender::SculptSession::cache, blender::ed::sculpt_paint::cursor_geometry_info_update(), blender::ed::sculpt_paint::StrokeCache::first_time, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::ed::sculpt_paint::PaintStroke::StrokeStep::location, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::PaintStroke::StrokeStep::mouse, blender::ed::sculpt_paint::StrokeCache::mouse, blender::ed::sculpt_paint::PaintStroke::StrokeStep::mouse_event, blender::ed::sculpt_paint::StrokeCache::mouse_event, blender::VPaint::paint, blender::paint_calc_object_space_radius(), blender::ed::sculpt_paint::paint_supports_dynamic_size(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::PaintStroke::StrokeStep::pressure, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::radius_squared, blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), update_cache_variants(), and blender::ed::sculpt_paint::StrokeCache::vc.

Referenced by update_cache_variants(), blender::VertexPaintStroke::update_step(), and blender::WeightPaintStroke::update_step().

◆ update_sculpt_normal()

◆ use_normal()