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:
authorKen Hughes <khughes@pacific.edu>2006-05-25 22:28:51 +0400
committerKen Hughes <khughes@pacific.edu>2006-05-25 22:28:51 +0400
commitda31dfe6035b7bc1c6eb58e9868fe24dd3006a5b (patch)
tree2002d240d939c732dc6cf39270f6b3799123f795 /source/blender/src/editmesh_add.c
parent8fb3373a78d3e939c2b2eeccf98309f826ddbe7a (diff)
Remove dead code in add_primitiveMesh(), left after UV Sphere was made
to aligns with view.
Diffstat (limited to 'source/blender/src/editmesh_add.c')
-rw-r--r--source/blender/src/editmesh_add.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/src/editmesh_add.c b/source/blender/src/editmesh_add.c
index 7a3003a01f9..e005a586ab7 100644
--- a/source/blender/src/editmesh_add.c
+++ b/source/blender/src/editmesh_add.c
@@ -1131,17 +1131,12 @@ void add_primitiveMesh(int type)
cent[0]-= G.obedit->obmat[3][0];
cent[1]-= G.obedit->obmat[3][1];
cent[2]-= G.obedit->obmat[3][2];
-
- /* 31 is a prime number */
- if(type!= 31) {
- Mat3CpyMat4(imat, G.vd->viewmat);
- Mat3MulVecfl(imat, cent);
- Mat3MulMat3(cmat, imat, mat);
- Mat3Inv(imat,cmat);
- } else {
- Mat3Inv(imat, mat);
- }
-
+
+ Mat3CpyMat4(imat, G.vd->viewmat);
+ Mat3MulVecfl(imat, cent);
+ Mat3MulMat3(cmat, imat, mat);
+ Mat3Inv(imat,cmat);
+
dia= G.vd->grid;
if(type != 10)
dia *= sqrt(2.0);