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:
authorluzpaz <luzpaz>2021-02-14 02:23:49 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-02-14 02:23:49 +0300
commitf362dad19bf47dad43dd099b76a0eb80f75c4619 (patch)
tree2d3483fd5dba5a87c0ddd61f48f70e181bc8573b /source/blender/editors
parent9e81e1c33f44d6d49956a220f6feaa51bf8cba7c (diff)
Cleanup: Source Code Typos
Corrects approximately 36 spelling errors in source variable names. Differential Revision: https://developer.blender.org/D10347 Reviewed by Hans Goudey
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c32
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_filter_color.c2
2 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 1b53141294e..c8bd38d58fe 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -444,13 +444,13 @@ static void annotation_stroke_arrow_calc_points_segment(float stroke_points[8],
const float ref_point[2],
const float dir_cw[2],
const float dir_ccw[2],
- const float lenght,
+ const float length,
const float sign)
{
- stroke_points[0] = ref_point[0] + dir_cw[0] * lenght * sign;
- stroke_points[1] = ref_point[1] + dir_cw[1] * lenght * sign;
- stroke_points[2] = ref_point[0] + dir_ccw[0] * lenght * sign;
- stroke_points[3] = ref_point[1] + dir_ccw[1] * lenght * sign;
+ stroke_points[0] = ref_point[0] + dir_cw[0] * length * sign;
+ stroke_points[1] = ref_point[1] + dir_cw[1] * length * sign;
+ stroke_points[2] = ref_point[0] + dir_ccw[0] * length * sign;
+ stroke_points[3] = ref_point[1] + dir_ccw[1] * length * sign;
}
static void annotation_stroke_arrow_calc_points(tGPspoint *point,
@@ -459,7 +459,7 @@ static void annotation_stroke_arrow_calc_points(tGPspoint *point,
float stroke_points[8],
const int arrow_style)
{
- const int arrow_lenght = 8;
+ const int arrow_length = 8;
float norm_dir[2];
copy_v2_v2(norm_dir, stroke_dir);
normalize_v2(norm_dir);
@@ -468,22 +468,22 @@ static void annotation_stroke_arrow_calc_points(tGPspoint *point,
switch (arrow_style) {
case GP_STROKE_ARROWSTYLE_OPEN:
- mul_v2_fl(norm_dir, arrow_lenght);
- stroke_points[0] = corner[0] + inv_norm_dir_clockwise[0] * arrow_lenght + norm_dir[0];
- stroke_points[1] = corner[1] + inv_norm_dir_clockwise[1] * arrow_lenght + norm_dir[1];
- stroke_points[2] = corner[0] + inv_norm_dir_counterclockwise[0] * arrow_lenght + norm_dir[0];
- stroke_points[3] = corner[1] + inv_norm_dir_counterclockwise[1] * arrow_lenght + norm_dir[1];
+ mul_v2_fl(norm_dir, arrow_length);
+ stroke_points[0] = corner[0] + inv_norm_dir_clockwise[0] * arrow_length + norm_dir[0];
+ stroke_points[1] = corner[1] + inv_norm_dir_clockwise[1] * arrow_length + norm_dir[1];
+ stroke_points[2] = corner[0] + inv_norm_dir_counterclockwise[0] * arrow_length + norm_dir[0];
+ stroke_points[3] = corner[1] + inv_norm_dir_counterclockwise[1] * arrow_length + norm_dir[1];
break;
case GP_STROKE_ARROWSTYLE_SEGMENT:
annotation_stroke_arrow_calc_points_segment(stroke_points,
corner,
inv_norm_dir_clockwise,
inv_norm_dir_counterclockwise,
- arrow_lenght,
+ arrow_length,
1.0f);
break;
case GP_STROKE_ARROWSTYLE_CLOSED:
- mul_v2_fl(norm_dir, arrow_lenght);
+ mul_v2_fl(norm_dir, arrow_length);
if (point != NULL) {
add_v2_v2(&point->x, norm_dir);
copy_v2_v2(corner, &point->x);
@@ -492,13 +492,13 @@ static void annotation_stroke_arrow_calc_points(tGPspoint *point,
corner,
inv_norm_dir_clockwise,
inv_norm_dir_counterclockwise,
- arrow_lenght,
+ arrow_length,
-1.0f);
stroke_points[4] = corner[0] - norm_dir[0];
stroke_points[5] = corner[1] - norm_dir[1];
break;
case GP_STROKE_ARROWSTYLE_SQUARE:
- mul_v2_fl(norm_dir, arrow_lenght * 1.5f);
+ mul_v2_fl(norm_dir, arrow_length * 1.5f);
if (point != NULL) {
add_v2_v2(&point->x, norm_dir);
copy_v2_v2(corner, &point->x);
@@ -507,7 +507,7 @@ static void annotation_stroke_arrow_calc_points(tGPspoint *point,
corner,
inv_norm_dir_clockwise,
inv_norm_dir_counterclockwise,
- arrow_lenght * 0.75f,
+ arrow_length * 0.75f,
-1.0f);
stroke_points[4] = stroke_points[0] - norm_dir[0];
stroke_points[5] = stroke_points[1] - norm_dir[1];
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
index 76a6b05cdff..b5fade32a25 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
@@ -86,7 +86,7 @@ static EnumPropertyItem prop_color_filter_types[] = {
{COLOR_FILTER_SATURATION, "SATURATION", 0, "Saturation", "Change saturation"},
{COLOR_FILTER_VALUE, "VALUE", 0, "Value", "Change value"},
- {COLOR_FILTER_BRIGHTNESS, "BRIGTHNESS", 0, "Brightness", "Change brightness"},
+ {COLOR_FILTER_BRIGHTNESS, "BRIGHTNESS", 0, "Brightness", "Change brightness"},
{COLOR_FILTER_CONTRAST, "CONTRAST", 0, "Contrast", "Change contrast"},
{COLOR_FILTER_SMOOTH, "SMOOTH", 0, "Smooth", "Smooth colors"},