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).
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user