Bug 1702
authorTon Roosendaal <ton@blender.org>
Fri, 29 Oct 2004 11:35:13 +0000 (11:35 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 29 Oct 2004 11:35:13 +0000 (11:35 +0000)
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 :)

source/blender/src/editobject.c

index d446bc2ec248b16229815d7d4e4ab0fc184000df..d2abf0cf28dec53efcfda4dafeedefb95e6e6828 100644 (file)
@@ -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){