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:
authorCampbell Barton <campbell@blender.org>2022-04-04 08:42:37 +0300
committerCampbell Barton <campbell@blender.org>2022-04-04 08:43:25 +0300
commit5dbd6968a6851a7f1ed4ee1b9b5372a3b082dff9 (patch)
treed5ad2a56d0b74184a4a134f9a2879c512de0b06c /source/blender/editors/curve
parentf699dbba86156ad3f24c24e3d369f0708b3fd1b5 (diff)
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r--source/blender/editors/curve/editcurve_pen.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c
index 0524159fe54..fca850076ae 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -1162,16 +1162,14 @@ static void move_segment(ViewContext *vc, MoveSegmentData *seg_data, const wmEve
if (bezt2->hide) {
return;
}
- else {
- /*
- * Swap bezt1 and bezt2 in all calculations if only bezt2 is visible.
- * (The first point needs to be visible for the calculations of the second point to be valid)
- */
- BezTriple *temp_bezt = bezt2;
- bezt2 = bezt1;
- bezt1 = temp_bezt;
- h1 = 0, h2 = 2;
- }
+ /*
+ * Swap bezt1 and bezt2 in all calculations if only bezt2 is visible.
+ * (The first point needs to be visible for the calculations of the second point to be valid)
+ */
+ BezTriple *temp_bezt = bezt2;
+ bezt2 = bezt1;
+ bezt1 = temp_bezt;
+ h1 = 0, h2 = 2;
}
const float t = max_ff(min_ff(seg_data->t, 0.9f), 0.1f);