forked from bartvdbraak/blender
This is patch #7056
Submitted by Davide Vercelli (unclezeiv) removes the restriction of using the screw tool only in front view. Kent
This commit is contained in:
parent
4e2143f639
commit
caa804e2b6
@ -756,14 +756,15 @@ void spin_mesh(int steps, float degr, float *dvec, int mode)
|
||||
if(G.scene->toolsettings->editbutflag & B_CLOCKWISE) phi= -phi;
|
||||
|
||||
if(dvec) {
|
||||
n[0]=n[1]= 0.0;
|
||||
n[2]= 1.0;
|
||||
n[0]= G.vd->viewinv[1][0];
|
||||
n[1]= G.vd->viewinv[1][1];
|
||||
n[2]= G.vd->viewinv[1][2];
|
||||
} else {
|
||||
n[0]= G.vd->viewinv[2][0];
|
||||
n[1]= G.vd->viewinv[2][1];
|
||||
n[2]= G.vd->viewinv[2][2];
|
||||
Normalize(n);
|
||||
}
|
||||
Normalize(n);
|
||||
|
||||
q[0]= (float)cos(phi);
|
||||
si= (float)sin(phi);
|
||||
@ -825,12 +826,6 @@ void screw_mesh(int steps, int turns)
|
||||
TEST_EDITMESH
|
||||
if(multires_test()) return;
|
||||
|
||||
/* first condition: we need frontview! */
|
||||
if(G.vd->view!=1) {
|
||||
error("Must be in Front View");
|
||||
return;
|
||||
}
|
||||
|
||||
/* clear flags */
|
||||
eve= em->verts.first;
|
||||
while(eve) {
|
||||
|
Loading…
Reference in New Issue
Block a user