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:
authorSebastian Parborg <darkdefende@gmail.com>2019-09-13 18:15:26 +0300
committerSebastian Parborg <darkdefende@gmail.com>2019-09-13 18:18:35 +0300
commit23a4149778c879d8a57edd211efefa8a740abd52 (patch)
treec129496eafc72385d786ce9fa6b201882a979628
parent6b0d1ef7e118f679fb5dacac184a7e72fef6142e (diff)
Fix "minimum twist" curve flipping issue
Correct the code to actually do what the comment says. This fixes an issue where the curve would flip 180 degrees under certain conditions.
-rw-r--r--source/blender/blenkernel/intern/curve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c
index 0080eb1a9d7..67b0aaffc4a 100644
--- a/source/blender/blenkernel/intern/curve.c
+++ b/source/blender/blenkernel/intern/curve.c
@@ -2370,7 +2370,7 @@ static void make_bevel_list_3D_minimum_twist(BevList *bl)
nr = bl->nr;
while (nr--) {
- if (nr + 4 > bl->nr) { /* first time and second time, otherwise first point adjusts last */
+ if (nr + 3 > bl->nr) { /* first time and second time, otherwise first point adjusts last */
vec_to_quat(bevp1->quat, bevp1->dir, 5, 1);
}
else {