diff options
author | Martin Poirier <theeth@yahoo.com> | 2004-11-10 01:47:47 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2004-11-10 01:47:47 +0300 |
commit | 422127e1ca20d74b6550982e0a9f764f902eca42 (patch) | |
tree | 675adfd160d9e89d8981f8feac8c5c8d4aecc26e | |
parent | a4c582d9c5d4f0c86657cdaf217a445dd468663e (diff) |
Made numerical input work for extrude along normals (Bug #1762)
Gosh, I hate working with the old transform (of course, all those hackish fix are not making it any better, mind you).
-rw-r--r-- | source/blender/src/editobject.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index fe662f28e59..0a24c60fd93 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -5307,11 +5307,16 @@ void transform(int mode) } if(mode=='n') { - tv= transvmain; - if(tv->nor) { - dot= tv->nor[0]*dvecp[0] + tv->nor[1]*dvecp[1] + tv->nor[2]*dvecp[2]; - apply_keyb_grid(&dot, 0.0, G.vd->grid, 0.1*G.vd->grid, gridflag & USER_AUTOGRABGRID); - /* do not change dvec here, for d_dvec (hold shift) to keep working */ + if (typemode){ + dot = addvec[0]; + } + else { + tv= transvmain; + if(tv->nor) { + dot= tv->nor[0]*dvecp[0] + tv->nor[1]*dvecp[1] + tv->nor[2]*dvecp[2]; + apply_keyb_grid(&dot, 0.0, G.vd->grid, 0.1*G.vd->grid, gridflag & USER_AUTOGRABGRID); + /* do not change dvec here, for d_dvec (hold shift) to keep working */ + } } } |