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:
authorToni Alatalo <antont@kyperjokki.fi>2005-11-08 20:47:57 +0300
committerToni Alatalo <antont@kyperjokki.fi>2005-11-08 20:47:57 +0300
commit15beb7db4222a4be6dc785acd6de07bb23e19005 (patch)
treed967be300d118ca7fb802f3da17decd0278ef0bd /source/blender/src/editcurve.c
parent33648819f7bf63211a68aebb8daf51ff761b71f4 (diff)
a little tweak to make curve handles always copy the type from the previous handle
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r--source/blender/src/editcurve.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c
index f2cb7a9de9b..a72ddf68036 100644
--- a/source/blender/src/editcurve.c
+++ b/source/blender/src/editcurve.c
@@ -2613,8 +2613,8 @@ void addvert_Nurb(int mode)
memcpy(newbezt+1, bezt, nu->pntsu*sizeof(BezTriple));
*newbezt= *bezt;
newbezt->f1= newbezt->f2= newbezt->f3= 1;
- if(bezt->h1 & 1) newbezt->h1= newbezt->h2= HD_AUTO;
- else newbezt->h1= newbezt->h2= HD_VECT;
+ if(newbezt >= 0) newbezt->h2= newbezt->h1;
+ else newbezt->h2= newbezt->h1= HD_ALIGN; /* does this ever happen? */
VECCOPY(temp, bezt->vec[1]);
MEM_freeN(nu->bezt);
nu->bezt= newbezt;
@@ -2631,8 +2631,8 @@ void addvert_Nurb(int mode)
nu->bezt= newbezt;
newbezt+= nu->pntsu;
newbezt->f1= newbezt->f2= newbezt->f3= 1;
- if(newbezt->h2 & 1) newbezt->h1= newbezt->h2= HD_AUTO;
- else newbezt->h1= newbezt->h2= HD_VECT;
+ if(newbezt >= 0) newbezt->h2= newbezt->h1;
+ else newbezt->h2= newbezt->h1= HD_ALIGN; /* does this ever happen? */
bezt= nu->bezt+nu->pntsu-1;
}
else bezt= 0;