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:
authorTon Roosendaal <ton@blender.org>2006-06-25 12:20:45 +0400
committerTon Roosendaal <ton@blender.org>2006-06-25 12:20:45 +0400
commit3d59428183db072f37aba2f403de724f46f66827 (patch)
treea71be619c885e83983198bc4d4ac630451d2b860 /source/blender/src/editcurve.c
parent86e98f76f728ec0ecca23af2fae1c183bd8d0526 (diff)
Fix #4441
Ancient issue; when you make a path cyclic, inserting new points resulted in wrong interpolation. Reason: the knots array was then created with the wrong tag 'endpoint U'.
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r--source/blender/src/editcurve.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c
index 576e8155f63..351ecc2927a 100644
--- a/source/blender/src/editcurve.c
+++ b/source/blender/src/editcurve.c
@@ -2797,6 +2797,7 @@ void makecyclicNurb()
if(nu->flagu & 1) nu->flagu--;
else {
nu->flagu++;
+ nu->flagu &= ~2; /* endpoint flag, fixme */
fp= MEM_mallocN(sizeof(float)*KNOTSU(nu), "makecyclicN");
b= (nu->orderu+nu->pntsu);
memcpy(fp, nu->knotsu, sizeof(float)*b);