Added some notes on mesh materials and object getData(mesh=1)

This commit is contained in:
2006-07-11 15:02:14 +00:00
parent 893a36408c
commit b54d5809c4
2 changed files with 6 additions and 2 deletions

View File

@@ -681,6 +681,9 @@ class Mesh:
the object's materials.
B{Note}: Making the material list shorter does not change the faces material indicies,
take care when using the faces material indices to reference a material in the materials list.
B{Note}: The the list thats returned is not linked to the original mesh.
mesh.materials.append(material) wont do anything.
Use mesh.materials += [material] instead.
@type materials: list of Materials
@ivar degr: The max angle for auto smoothing in [1,80].
@type degr: int

View File

@@ -393,8 +393,9 @@ class Object:
Object.
If the keyword parameter 'name_only' is True, only the Datablock
name is returned as a string. It the object is of type Mesh, then the
'mesh' keyword can also be used; the data return is a Mesh object if
True, otherwise it is an NMesh object (the default).
'mesh' keyword can also be used; if True the data return is a Mesh object,
otherwise it is an NMesh object (the default).
Using the mesh keyword is ignored for non mesh objects.
@type name_only: bool
@param name_only: This is a keyword parameter. If True (or nonzero),
only the name of the data object is returned.