diff options
-rw-r--r-- | release/scripts/bpymodules/BPyRender.py | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Camera.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/bpymodules/BPyRender.py b/release/scripts/bpymodules/BPyRender.py index 43d7e561fa9..502e17a3929 100644 --- a/release/scripts/bpymodules/BPyRender.py +++ b/release/scripts/bpymodules/BPyRender.py @@ -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' diff --git a/source/blender/python/api2_2x/Camera.c b/source/blender/python/api2_2x/Camera.c index 29e27478d52..1104be63f88 100644 --- a/source/blender/python/api2_2x/Camera.c +++ b/source/blender/python/api2_2x/Camera.c @@ -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", |