Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2007-02-23 23:06:17 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2007-02-23 23:06:17 +0300
commit758307b9cc9f1e5eaf504d5c24090d08fb2bc14d (patch)
tree1342c4883713a27bad9f11dd091dad1679bcf6b8 /source/blender/src/editmesh_tools.c
parent30984a3bc8364c8959adb6079aec60af9e48f742 (diff)
Bug #6093:
Spin tool now uses the 'clockwise' setting again. This was disabled because degrees accepts negative values, but it seems to cause confusion, and there's no reason both buttons can't work at the same time.
Diffstat (limited to 'source/blender/src/editmesh_tools.c')
-rw-r--r--source/blender/src/editmesh_tools.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c
index 0f4c2ff1498..cfaab014135 100644
--- a/source/blender/src/editmesh_tools.c
+++ b/source/blender/src/editmesh_tools.c
@@ -751,8 +751,9 @@ void spin_mesh(int steps, float degr, float *dvec, int mode)
cent[2]-= G.obedit->obmat[3][2];
Mat3MulVecfl(imat, cent);
- phi= degr*M_PI/(-360.0);
+ phi= degr*M_PI/360.0;
phi/= steps;
+ if(G.scene->toolsettings->editbutflag & B_CLOCKWISE) phi= -phi;
if(dvec) {
n[0]=n[1]= 0.0;
@@ -819,7 +820,7 @@ void screw_mesh(int steps, int turns)
EditMesh *em = G.editMesh;
EditVert *eve,*v1=0,*v2=0;
EditEdge *eed;
- float dvec[3], nor[3],deg=(-360);
+ float dvec[3], nor[3];
TEST_EDITMESH
if(multires_test()) return;
@@ -878,9 +879,8 @@ void screw_mesh(int steps, int turns)
dvec[1]= -dvec[1];
dvec[2]= -dvec[2];
}
- if(G.scene->toolsettings->editbutflag & B_CLOCKWISE) deg= -deg;
- spin_mesh(turns*steps, turns*deg, dvec, 0);
+ spin_mesh(turns*steps, turns*360, dvec, 0);
BIF_undo_push("Spin");
}