diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-29 17:50:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-29 17:50:05 +0300 |
commit | 8960f536763453ec6b40401c1ab22880e180b742 (patch) | |
tree | 0bf954845d654f0b79d6897f5791e7a1df6535aa /source/blender | |
parent | 3ac7a415f75da6f55b70c49f8677a2598c80b09b (diff) |
some fixes for python baking function
needed to add a small value to the baking distance for it to include faces of that distance (maybe should make this happen from the user interface too)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/doc/Render.py | 4 | ||||
-rw-r--r-- | source/blender/python/api2_2x/sceneRender.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/doc/Render.py b/source/blender/python/api2_2x/doc/Render.py index 97c7c0ecc44..cf886ad27f1 100644 --- a/source/blender/python/api2_2x/doc/Render.py +++ b/source/blender/python/api2_2x/doc/Render.py @@ -391,8 +391,8 @@ class RenderData: @type bakeClear: bool @ivar bakeToActive: When enabled, selected objects are baked onto the active object. @type bakeToActive: bool - @ivar bakeNormalizeAO: Normalize AO bake values. - @type bakeNormalizeAO: bool + @ivar bakeNormalize: Normalize AO and displacement to the range of the distance value. + @type bakeNormalize: bool @ivar bakeMargin: The pixel distance to extend baked pixels past the boundry (reduces bleeding when mipmapping) @type bakeMargin: int @ivar bakeDist: The distance in blender units to use when bakeToActive is enabled and geomtry does not overlap. diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c index 284dc1efa4f..da1fd7718c9 100644 --- a/source/blender/python/api2_2x/sceneRender.c +++ b/source/blender/python/api2_2x/sceneRender.c @@ -2881,9 +2881,9 @@ static PyGetSetDef BPy_RenderData_getseters[] = { (getter)RenderData_getBakeMode, (setter)RenderData_setBakeMode, "Bake selection to active", (void *)R_BAKE_TO_ACTIVE}, - {"bakeNormalizeAO", + {"bakeNormalize", (getter)RenderData_getBakeMode, (setter)RenderData_setBakeMode, - "Bake selection to active", + "Normalize AO and displacement to the dist range", (void *)R_BAKE_NORMALIZE}, {"bakeMargin", (getter)RenderData_getIValueAttr, (setter)RenderData_setIValueAttrClamp, |