forked from bartvdbraak/blender
error, camera scale couldnt be set. bpyrender now sets ortho properly
This commit is contained in:
parent
b0c2e7808c
commit
54863a2fef
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user