diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-03 11:37:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-03 11:37:33 +0400 |
commit | 78c43d18fc47c3728a55e1710901c1e7f964195f (patch) | |
tree | dcf438b249a2ab3e689fd06c100a0cf5b761ca06 /source/blender/blenlib/intern/uvproject.c | |
parent | abb21a4da06868bdb2ff37fd9e362a225aae35ec (diff) |
fix [#27839] UV 'Project from view' ignores camera lens shift
Diffstat (limited to 'source/blender/blenlib/intern/uvproject.c')
-rw-r--r-- | source/blender/blenlib/intern/uvproject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c index d139fb1ab71..ecb42315ee3 100644 --- a/source/blender/blenlib/intern/uvproject.c +++ b/source/blender/blenlib/intern/uvproject.c @@ -169,8 +169,8 @@ UvCameraInfo *project_camera_info(Object *ob, float (*rotmat)[4], float winx, fl } /* include 0.5f here to move the UVs into the center */ - uci.shiftx = 0.5f - camera->shiftx; - uci.shifty = 0.5f - camera->shifty; + uci.shiftx = 0.5f - (camera->shiftx * uci.xasp); + uci.shifty = 0.5f - (camera->shifty * uci.yasp); uci_pt= MEM_mallocN(sizeof(UvCameraInfo), "UvCameraInfo"); *uci_pt= uci; |