code cleanup
[blender.git] / source / blender / editors / space_view3d / view3d_edit.c
index 5169d823bd83354562488eb0ab127d79a37209a1..17f1081f5c49dfc339033a5bf5060f56a08beb71 100644 (file)
@@ -475,8 +475,8 @@ static void viewops_data_create(bContext *C, wmOperator *op, wmEvent *event)
 
        {
                /* for dolly */
-               float mval_f[2];
-               VECCOPY2D(mval_f, event->mval);
+               const float mval_f[2] = {(float)event->mval[0],
+                                        (float)event->mval[1]};
                ED_view3d_win_to_vector(vod->ar, mval_f, vod->mousevec);
        }