diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-14 00:37:00 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-14 00:37:00 +0400 |
commit | b8d89801e888db46f4fc1b6f73a9e1267edfe2f9 (patch) | |
tree | ffcebf8bacddb0be6e840b7515fffb2942ddf646 /source/blender/src/editipo.c | |
parent | 65237237302c9456e40f66cdb7eecc7802291531 (diff) |
minor fix, more a beauty glitch, bug 1612;
when adding first ipo curve position, editmode on the curve shows weird
handles, which solves when adding the next keys though...
Fix is that it sets all handles on zero size now. (is auto-handle, so no
harm done)
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r-- | source/blender/src/editipo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index 7c7ae9b2d0c..a561dde689a 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -1946,8 +1946,12 @@ void insert_vert_ipo(IpoCurve *icu, float x, float y) int a = 0, h1, h2; memset(&beztr, 0, sizeof(BezTriple)); + beztr.vec[0][0]= x; // set all three points, for nicer start position + beztr.vec[0][1]= y; beztr.vec[1][0]= x; beztr.vec[1][1]= y; + beztr.vec[2][0]= x; + beztr.vec[2][1]= y; beztr.hide= IPO_BEZ; beztr.f1= beztr.f2= beztr.f3= SELECT; beztr.h1= beztr.h2= HD_AUTO; |