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 | |
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')
-rw-r--r-- | source/blender/src/editipo.c | 4 | ||||
-rw-r--r-- | source/blender/src/editmesh_add.c | 4 |
2 files changed, 6 insertions, 2 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; diff --git a/source/blender/src/editmesh_add.c b/source/blender/src/editmesh_add.c index 1b78717e1b2..646bcf1a1b1 100644 --- a/source/blender/src/editmesh_add.c +++ b/source/blender/src/editmesh_add.c @@ -643,7 +643,7 @@ void add_primitiveMesh(int type) } dia= G.vd->grid; /* one segment first: de X as */ - phi= -1.0; + phi= 1.0; phid= 2.0/((float)tot-1); for(a=0;a<tot;a++) { vec[0]= cent[0]+dia*phi; @@ -653,7 +653,7 @@ void add_primitiveMesh(int type) eve= addvertlist(vec); eve->f= 1+2+4; if (a) addedgelist(eve->prev, eve, NULL); - phi+=phid; + phi-=phid; } /* extrude and translate */ vec[0]= vec[2]= 0.0; |