diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-08-28 15:11:07 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-08-28 15:11:07 +0400 |
commit | caa804e2b67a6b1b31ec2d7da99de7b597fe2140 (patch) | |
tree | 1cad4f921ec7d6bbaa1e9ef93ddf0232f6dfd91a /source/blender/src/editmesh_tools.c | |
parent | 4e2143f63926e4ea5ccf8a585b22ea56bd4f4e99 (diff) |
This is patch #7056
Submitted by Davide Vercelli (unclezeiv)
removes the restriction of using the screw tool only in front view.
Kent
Diffstat (limited to 'source/blender/src/editmesh_tools.c')
-rw-r--r-- | source/blender/src/editmesh_tools.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c index f08e841c89b..b0e72244eb6 100644 --- a/source/blender/src/editmesh_tools.c +++ b/source/blender/src/editmesh_tools.c @@ -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); @@ -824,12 +825,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; |