error, camera scale couldnt be set. bpyrender now sets ortho properly

This commit is contained in:
Campbell Barton 2007-01-12 00:31:18 +00:00
parent b0c2e7808c
commit 54863a2fef
2 changed files with 2 additions and 2 deletions

@ -93,7 +93,7 @@ def imageFromObjectsOrtho(objects, path, width, height, smooth, alpha= True, cam
render_scn.link(render_cam_ob)
render_scn.setCurrentCamera(render_cam_ob)
render_cam_data.type= 1 # ortho
render_cam_data.type= 'ortho'

@ -1150,7 +1150,7 @@ static PyGetSetDef BPy_Camera_getseters[] = {
{"scale",
(getter)getFloatAttr, (setter)setFloatAttrClamp,
"scale for ortho cameras",
NULL},
EXPP_CAM_ATTR_SCALE},
{"clipStart",
(getter)getFloatAttr, (setter)setFloatAttrClamp,
"the cameras clip start",