Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_sculpt_paint.c4
-rw-r--r--source/blender/editors/gpencil/gpencil_vertex_paint.c6
-rw-r--r--source/blender/editors/gpencil/gpencil_weight_paint.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index 7b4af648800..d37e393ac77 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -271,8 +271,8 @@ static float gpencil_brush_influence_calc(tGP_BrushEditData *gso,
float distance = (float)len_v2v2_int(mval_i, co);
/* Apply Brush curve. */
- float brush_fallof = BKE_brush_curve_strength(brush, distance, (float)radius);
- influence *= brush_fallof;
+ float brush_falloff = BKE_brush_curve_strength(brush, distance, (float)radius);
+ influence *= brush_falloff;
/* apply multiframe falloff */
influence *= gso->mf_falloff;
diff --git a/source/blender/editors/gpencil/gpencil_vertex_paint.c b/source/blender/editors/gpencil/gpencil_vertex_paint.c
index b0dff6589da..c6ee30ad6e3 100644
--- a/source/blender/editors/gpencil/gpencil_vertex_paint.c
+++ b/source/blender/editors/gpencil/gpencil_vertex_paint.c
@@ -231,8 +231,8 @@ static float brush_influence_calc(tGP_BrushVertexpaintData *gso, const int radiu
float distance = (float)len_v2v2_int(mval_i, co);
/* Apply Brush curve. */
- float brush_fallof = BKE_brush_curve_strength(brush, distance, (float)radius);
- influence *= brush_fallof;
+ float brush_falloff = BKE_brush_curve_strength(brush, distance, (float)radius);
+ influence *= brush_falloff;
/* apply multiframe falloff */
influence *= gso->mf_falloff;
@@ -646,7 +646,7 @@ static bool brush_smear_apply(tGP_BrushVertexpaintData *gso,
inf *= gso->pressure;
}
- /* Calc distance from initial sample location and add a fallof effect. */
+ /* Calc distance from initial sample location and add a falloff effect. */
int mval_i[2];
round_v2i_v2fl(mval_i, gso->mval);
float distance = (float)len_v2v2_int(mval_i, gso->grid_sample);
diff --git a/source/blender/editors/gpencil/gpencil_weight_paint.c b/source/blender/editors/gpencil/gpencil_weight_paint.c
index 9d3e9c6ae45..7fa71fcce3c 100644
--- a/source/blender/editors/gpencil/gpencil_weight_paint.c
+++ b/source/blender/editors/gpencil/gpencil_weight_paint.c
@@ -203,8 +203,8 @@ static float brush_influence_calc(tGP_BrushWeightpaintData *gso, const int radiu
influence *= 1.0f - (distance / max_ff(radius, 1e-8));
/* Apply Brush curve. */
- float brush_fallof = BKE_brush_curve_strength(brush, distance, (float)radius);
- influence *= brush_fallof;
+ float brush_falloff = BKE_brush_curve_strength(brush, distance, (float)radius);
+ influence *= brush_falloff;
/* apply multi-frame falloff */
influence *= gso->mf_falloff;