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:
Diffstat (limited to 'source/blender/python/api2_2x/doc/Material.py')
-rw-r--r--source/blender/python/api2_2x/doc/Material.py31
1 files changed, 23 insertions, 8 deletions
diff --git a/source/blender/python/api2_2x/doc/Material.py b/source/blender/python/api2_2x/doc/Material.py
index 8ee69c842b9..ea85f841f09 100644
--- a/source/blender/python/api2_2x/doc/Material.py
+++ b/source/blender/python/api2_2x/doc/Material.py
@@ -110,18 +110,13 @@ class Material:
@cvar nStars: Number of points on the halo stars - [3, 50].
@cvar nLines: Number of star shaped lines on each halo - [0, 250].
@cvar nRings: Number of halo rings - [0, 24].
+ @type ipo: Blender Ipo
+ @cvar ipo: This Material's ipo.
@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
that range: if val < Min, then val = Min, if val > Max, then val = Max.
- """
-
+ """
- def getIpo():
- """
- Retreives the Ipo (if any) of an material object
- @rtype: Ipo object
- @return: the Ipo of the material object.
- """
def getName():
"""
Get the name of this Material object.
@@ -135,6 +130,26 @@ class Material:
@param name: The new name.
"""
+ def getIpo():
+ """
+ Get the Ipo associated with this material, if any.
+ @rtype: Ipo
+ @return: the wrapped ipo or None.
+ """
+
+ def setIpo(ipo):
+ """
+ Link an ipo to this material.
+ @type ipo: Blender Ipo
+ @param ipo: a material type ipo.
+ """
+
+ def clearIpo():
+ """
+ Unlink the ipo from this material.
+ @return: True if there was an ipo linked or False otherwise.
+ """
+
def getMode():
"""
Get this Material's mode flags.