quiet some -Wshadow warnings
[blender.git] / source / blender / editors / transform / transform_orientations.c
index 0e25739c34a8b741fc9571c32714dd469208377b..845d5b73f0c086b51584706e29a293b175c5a3d1 100644 (file)
@@ -631,7 +631,6 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
                                        /* if there's an edge available, use that for the tangent */
                                        if (em->bm->totedgesel >= 1) {
                                                BMEdge *eed = NULL;
-                                               BMIter iter;
                                                
                                                BM_ITER_MESH (eed, &iter, em->bm, BM_EDGES_OF_MESH) {
                                                        if (BM_elem_flag_test(eed, BM_ELEM_SELECT)) {
@@ -746,14 +745,14 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
                        MetaBall *mb = obedit->data;
                        
                        if (mb->lastelem) {
-                               float mat[4][4];
+                               float qmat[3][3];
 
                                /* Rotation of MetaElem is stored in quat */
-                               quat_to_mat4(mat, mb->lastelem->quat);
+                               quat_to_mat3(qmat, mb->lastelem->quat);
 
-                               copy_v3_v3(normal, mat[2]);
+                               copy_v3_v3(normal, qmat[2]);
 
-                               negate_v3_v3(plane, mat[1]);
+                               negate_v3_v3(plane, qmat[1]);
                                
                                result = ORIENTATION_FACE;
                        }