Cleanup: Use const SculptSession arguments

This commit is contained in:
Hans Goudey
2024-07-03 11:00:27 -04:00
parent 1992296828
commit ea202f83bf
2 changed files with 4 additions and 4 deletions

View File

@@ -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<float3> vert_positions,
Span<int> vert_indices,
MutableSpan<float> factors);
void calc_brush_texture_factors(SculptSession &ss,
void calc_brush_texture_factors(const SculptSession &ss,
const Brush &brush,
Span<float3> positions,
MutableSpan<float> factors);

View File

@@ -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<float3> vert_positions,
const Span<int> 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<float3> positions,
const MutableSpan<float> factors)