diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-10-19 17:48:37 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-10-19 17:48:37 +0400 |
commit | f76a742dc0cab7b8502a20d012ed8f5e70981be6 (patch) | |
tree | fc1a876285b86c89f6706a1c06109760cc1d67b9 /source | |
parent | c6d1ac3af8af4c074228b74157be9d9addf16ea7 (diff) |
=== BPy API ===
* Add read access for octree resolution
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/sceneRender.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c index 8e815b95ddf..ea74b72b9ef 100644 --- a/source/blender/python/api2_2x/sceneRender.c +++ b/source/blender/python/api2_2x/sceneRender.c @@ -89,7 +89,8 @@ enum rend_constants { EXPP_RENDER_ATTR_BAKEMODE, EXPP_RENDER_ATTR_BAKEDIST, EXPP_RENDER_ATTR_BAKENORMALSPACE, - EXPP_RENDER_ATTR_BAKEBIAS + EXPP_RENDER_ATTR_BAKEBIAS, + EXPP_RENDER_ATTR_OCRES }; #define EXPP_RENDER_ATTR_CFRA 2 @@ -1995,6 +1996,9 @@ static PyObject *RenderData_getIValueAttr( BPy_RenderData *self, void *type ) case EXPP_RENDER_ATTR_BAKENORMALSPACE: param = self->renderContext->bake_normal_space; break; + case EXPP_RENDER_ATTR_OCRES: + param = self->renderContext->ocres; + break; default: return EXPP_ReturnPyObjError( PyExc_RuntimeError, "undefined type constant in RenderData_setIValueAttrClamp" ); @@ -2796,6 +2800,10 @@ static PyGetSetDef BPy_RenderData_getseters[] = { (getter)RenderData_getMapNew, (setter)RenderData_setMapNew, "New mapping value (in frames)", NULL}, + {"octreeResolution", + (getter)RenderData_getIValueAttr, (setter)NULL, + "Resolution for octree", + (void *)EXPP_RENDER_ATTR_OCRES}, {"set", (getter)RenderData_getSet, (setter)RenderData_setSet, "Scene link 'set' value", |