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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-06-16 01:46:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-16 01:46:02 +0400
commita648a4699f1bcde20ea067c7b729d46c5f8ecd58 (patch)
tree5f727d627130f70ba2a32f0a06f6324daa791a59 /source/blender/blenlib/intern/uvproject.c
parentbb7062abcb4169f8f7676ebef54d5e6b8b27218a (diff)
scale option was only working for panoramic cameras
Diffstat (limited to 'source/blender/blenlib/intern/uvproject.c')
-rw-r--r--source/blender/blenlib/intern/uvproject.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c
index 11d93748fe4..cc115d52928 100644
--- a/source/blender/blenlib/intern/uvproject.c
+++ b/source/blender/blenlib/intern/uvproject.c
@@ -182,3 +182,10 @@ void project_from_view_ortho(float target[2], float source[3], float rotmat[4][4
target[0] = -pv[0];
target[1] = pv[2];
}
+
+
+void project_camera_info_scale(UvCameraInfo *uci, float scale_x, float scale_y)
+{
+ uci->xasp *= scale_x;
+ uci->yasp *= scale_y;
+}