Cleanup: Make parameter const (BKE_brush_curve_strength_clamped).

This commit is contained in:
Jeroen Bakker 2021-11-22 10:43:02 +01:00
parent 31864a40ba
commit 29f6ec56e6
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ void BKE_brush_randomize_texture_coords(struct UnifiedPaintSettings *ups, bool m
/* brush curve */
void BKE_brush_curve_preset(struct Brush *b, enum eCurveMappingPreset preset);
float BKE_brush_curve_strength_clamped(struct Brush *br, float p, const float len);
float BKE_brush_curve_strength_clamped(const struct Brush *br, float p, const float len);
float BKE_brush_curve_strength(const struct Brush *br, float p, const float len);
/* sampling */

View File

@ -2475,7 +2475,7 @@ float BKE_brush_curve_strength(const Brush *br, float p, const float len)
}
/* Uses the brush curve control to find a strength value between 0 and 1 */
float BKE_brush_curve_strength_clamped(Brush *br, float p, const float len)
float BKE_brush_curve_strength_clamped(const Brush *br, float p, const float len)
{
float strength = BKE_brush_curve_strength(br, p, len);