diff options
author | Ton Roosendaal <ton@blender.org> | 2004-10-29 15:35:13 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-10-29 15:35:13 +0400 |
commit | 3d815c3cf6d2d926315b0b1e623ea008f97ad90d (patch) | |
tree | da31603f4310a2dfcb05e29cbf7418b631ed2fde /source | |
parent | 0439f2ce89f8f910885deb2c8ac0e476a52cf6b8 (diff) |
Bug 1702
Holding shift, while in extrude transform mode ('n', along normal) popped
the extrusion back to beginning, this due to storage of printing value
in dvec[3]. Simple fix :)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editobject.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index d446bc2ec24..d2abf0cf28d 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -5305,8 +5305,7 @@ void transform(int mode) 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); - dvec[0] = dot; - dvec[1] = dvec[2] = 0.0; + /* do not change dvec here, for d_dvec (hold shift) to keep working */ } } @@ -5359,9 +5358,9 @@ void transform(int mode) if(mode=='n' && tv->nor) { if (typemode) - sprintf(str, "D: >%.4f< Along faces normal", dvec[0]); + sprintf(str, "D: >%.4f< Along faces normal", dot); else - sprintf(str, "D: %.4f Along faces normal", dvec[0]); + sprintf(str, "D: %.4f Along faces normal", dot); } else { if (typemode){ |