Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-27 00:51:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-27 00:51:43 +0400
commitaaa547faff8709cc92a6eaa73ac2fe4c1f042b2c (patch)
tree16f5f6d7d5452b1a82830f9513687c57e6376ee0 /source
parent879e4fd9be91b590a9c15fc68bdb9850f6f15bb1 (diff)
uv project tool: take scene aspect into account when calculating the camera bounds.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c4
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) {