Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2008-02-12 22:29:12 +0300
committerKen Hughes <khughes@pacific.edu>2008-02-12 22:29:12 +0300
commit60378a306c5634a4f649be3f3497da80f0b5d899 (patch)
tree6a383c11174b42f1519375fff1e8baa16ce7a986 /source/blender/python/api2_2x/doc
parentdf0d81f3c7ae91cad0bc612cdf49753ea661299b (diff)
Python API
---------- Added missing lamp.falloffType attribute. Also fixed typo in Render docs.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r--source/blender/python/api2_2x/doc/Lamp.py9
-rw-r--r--source/blender/python/api2_2x/doc/Render.py2
2 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Lamp.py b/source/blender/python/api2_2x/doc/Lamp.py
index b65fe253530..a7a1fb94620 100644
--- a/source/blender/python/api2_2x/doc/Lamp.py
+++ b/source/blender/python/api2_2x/doc/Lamp.py
@@ -26,6 +26,13 @@ Example::
- 'Hemi': 3
- 'Area': 4
- 'Photon': 5
+@type Falloffs: read-only dictionary
+@var Falloffs: The lamp falloff types.
+ - CONSTANT - Constant falloff
+ - INVLINEAR - Inverse linear
+ - INVSQUARE - Inverse square
+ - CUSTOM - Custom curve
+ - LINQUAD - Lin/Quad weighted
@type Modes: read-only dictionary
@var Modes: The lamp modes. Modes may be ORed together.
- 'Shadows'
@@ -152,6 +159,8 @@ class Lamp:
@type spotSize: float
@ivar type: Lamp type. See L{Types} for values.
@type type: int
+ @ivar falloffType: Lamp falloff type. See L{Falloffs} for values.
+ @type falloffType: int
@warning: Most member variables assume values in some [Min, Max] interval.
When trying to set them, the given parameter will be clamped to lie in
diff --git a/source/blender/python/api2_2x/doc/Render.py b/source/blender/python/api2_2x/doc/Render.py
index c26fd39cf48..255ec4825e5 100644
--- a/source/blender/python/api2_2x/doc/Render.py
+++ b/source/blender/python/api2_2x/doc/Render.py
@@ -472,7 +472,7 @@ class RenderData:
"""
Get the filename used for the remdered image.
@type frame: int
- @param path: the frame to use in the filename, if no argument given, use the current frame.
+ @param frame: the frame to use in the filename, if no argument given, use the current frame.
@rtype: string
@return: Returns the filename that blender would render to, taking into account output path, extension and frame number.
"""