diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-27 00:51:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-27 00:51:43 +0400 |
commit | aaa547faff8709cc92a6eaa73ac2fe4c1f042b2c (patch) | |
tree | 16f5f6d7d5452b1a82830f9513687c57e6376ee0 /source/blender/editors/uvedit/uvedit_unwrap_ops.c | |
parent | 879e4fd9be91b590a9c15fc68bdb9850f6f15bb1 (diff) |
uv project tool: take scene aspect into account when calculating the camera bounds.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_unwrap_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index b80862d4db5..7585f872f1a 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -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) { |