Merge branch 'blender2.7'
[blender.git] / source / blender / editors / mesh / editmesh_add_gizmo.c
index 7437d86e6b5374c9884c8cad3fbc0ed6fb2721a8..d3a81a3f9ed0bb10f6a339666a9d559aac0789de 100644 (file)
@@ -70,7 +70,6 @@ static void calc_initial_placement_point_from_view(
 {
 
        Scene *scene = CTX_data_scene(C);
-       View3D *v3d = CTX_wm_view3d(C);
        ARegion *ar = CTX_wm_region(C);
        RegionView3D *rv3d = ar->regiondata;
 
@@ -78,7 +77,7 @@ static void calc_initial_placement_point_from_view(
 
        float cursor_matrix[4][4];
        float orient_matrix[3][3];
-       ED_view3d_cursor3d_calc_mat4(scene, v3d, cursor_matrix);
+       ED_view3d_cursor3d_calc_mat4(scene, cursor_matrix);
 
        float dots[3] = {
                dot_v3v3(rv3d->viewinv[2], cursor_matrix[0]),