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/curve/editcurve_pen.c')
-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);