uv project tool: take scene aspect into account when calculating the camera bounds.

This commit is contained in:
Campbell Barton
2013-03-26 20:51:43 +00:00
parent 879e4fd9be
commit aaa547faff

View File

@@ -1339,7 +1339,9 @@ static int uv_from_view_exec(bContext *C, wmOperator *op)
}
}
else if (camera) {
struct ProjCameraInfo *uci = BLI_uvproject_camera_info(v3d->camera, obedit->obmat, scene->r.xsch, scene->r.ysch);
struct ProjCameraInfo *uci = BLI_uvproject_camera_info(v3d->camera, obedit->obmat,
scene->r.xsch * scene->r.xasp,
scene->r.ysch * scene->r.yasp);
if (uci) {
BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) {