diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-09 19:46:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-09 19:46:26 +0400 |
commit | 235f793f28bebf1fdfbc94bf8fc2f0c3ac727c49 (patch) | |
tree | 6d13b9fed2ab2785a2ade7988a25755374a92c81 /release | |
parent | 9f6080cf1b12c1db36cc6c6001bb0a9404a07771 (diff) |
Made aspx/y into floats so we can render precise regions (for apricot terrain baking)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/bpymodules/BPyRender.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/bpymodules/BPyRender.py b/release/scripts/bpymodules/BPyRender.py index 6f9c9997933..951e1ae6300 100644 --- a/release/scripts/bpymodules/BPyRender.py +++ b/release/scripts/bpymodules/BPyRender.py @@ -125,14 +125,14 @@ def imageFromObjectsOrtho(objects, path, width, height, smooth, alpha= True, cam # camera is wider then image res. # to make the image wider, reduce the aspy asp_diff= asp_image_res/asp_cam_mat - min_asp= int(round(asp_diff * 200)) + min_asp= asp_diff * 200 #print 'X', min_asp elif asp_cam_mat < asp_image_res: # asp_cam_mat < asp_image_res # camera is narrower then image res # to make the image narrower, reduce the aspx asp_diff= asp_cam_mat/asp_image_res - min_asp= int(round(asp_diff * 200)) + min_asp= asp_diff * 200 #print 'Y', min_asp else: min_asp= 200 |