diff --git a/source/blender/editors/sculpt_paint/mesh_brush_common.hh b/source/blender/editors/sculpt_paint/mesh_brush_common.hh index 03aa72e131a..a18fd26dcf1 100644 --- a/source/blender/editors/sculpt_paint/mesh_brush_common.hh +++ b/source/blender/editors/sculpt_paint/mesh_brush_common.hh @@ -186,12 +186,12 @@ void calc_brush_strength_factors(const StrokeCache &cache, /** * Modify brush influence factors to include sampled texture values. */ -void calc_brush_texture_factors(SculptSession &ss, +void calc_brush_texture_factors(const SculptSession &ss, const Brush &brush, Span vert_positions, Span vert_indices, MutableSpan factors); -void calc_brush_texture_factors(SculptSession &ss, +void calc_brush_texture_factors(const SculptSession &ss, const Brush &brush, Span positions, MutableSpan factors); diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc index b1db1a65ab9..dc81f9ab4ac 100644 --- a/source/blender/editors/sculpt_paint/sculpt.cc +++ b/source/blender/editors/sculpt_paint/sculpt.cc @@ -7070,7 +7070,7 @@ void calc_brush_strength_factors(const StrokeCache &cache, eBrushCurvePreset(brush.curve_preset), brush.curve, distances, cache.radius, factors); } -void calc_brush_texture_factors(SculptSession &ss, +void calc_brush_texture_factors(const SculptSession &ss, const Brush &brush, const Span vert_positions, const Span verts, @@ -7095,7 +7095,7 @@ void calc_brush_texture_factors(SculptSession &ss, } } -void calc_brush_texture_factors(SculptSession &ss, +void calc_brush_texture_factors(const SculptSession &ss, const Brush &brush, const Span positions, const MutableSpan factors)