correct some warnings, also sensor_x was being paassed to object_camera_matrix(....
[blender.git] / source / blender / editors / sculpt_paint / paint_image.c
index 92544b2309c8123a2695b2464181fc9fe4ebc6d5..6b6003fb098ae646be22a1ad6dc9102eb5de76b2 100644 (file)
@@ -3014,7 +3014,7 @@ static void project_paint_begin(ProjPaintState *ps)
                                object_camera_mode(&ps->scene->r, camera);
                                object_camera_matrix(&ps->scene->r, camera, ps->winx, ps->winy, 0,
                                                winmat, &_viewplane, &ps->clipsta, &ps->clipend,
-                                               &_lens, &_sensor_x, &_sensor_x, &_sensor_fit, &_ycor, &_viewdx, &_viewdy);
+                                               &_lens, &_sensor_x, &_sensor_y, &_sensor_fit, &_ycor, &_viewdx, &_viewdy);
 
                                ps->is_ortho= (ps->scene->r.mode & R_ORTHO) ? 1 : 0;
                        }