diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-23 04:28:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-23 04:28:29 +0400 |
commit | 8e2efc1dbf4cc7e8e4f3240e7c2aa2cf51e6a656 (patch) | |
tree | 9386da22c5edaac7e13061841230822226e44872 /release | |
parent | f02bfe0db69a23581464cd06ec073c08610b6aee (diff) |
rna/python api change: rename Mesh.faces --> tessfaces, since existing scripts are using this to modify the mesh and its confusing that the edits are not kept.
This also makes it clearer that the faces are for tessellated results only.
Added a section on the Gotcha's about upgrading scripts, the pros and cons of MeshTessFace/MeshPoly/BMFace.
and spesifically how to upgrade importers and exporters for 2.63+.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy_extras/mesh_utils.py | 4 | ||||
-rw-r--r-- | release/scripts/modules/bpy_types.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy_extras/mesh_utils.py b/release/scripts/modules/bpy_extras/mesh_utils.py index eccc799775c..01e4b248858 100644 --- a/release/scripts/modules/bpy_extras/mesh_utils.py +++ b/release/scripts/modules/bpy_extras/mesh_utils.py @@ -127,7 +127,7 @@ def edge_loops_from_faces(mesh, faces=None, seams=()): :arg mesh: the mesh used to get edge loops from. :type mesh: :class:`bpy.types.Mesh` :arg faces: optional face list to only use some of the meshes faces. - :type faces: :class:`bpy.types.MeshFaces`, sequence or or NoneType + :type faces: :class:`bpy.types.MeshTessFace`, sequence or or NoneType :return: return a list of edge vertex index lists. :rtype: list """ @@ -449,7 +449,7 @@ def face_random_points(num_points, faces): :arg num_points: the number of random points to generate on each face. :type int: :arg faces: list of the faces to generate points on. - :type faces: :class:`bpy.types.MeshFaces`, sequence + :type faces: :class:`bpy.types.MeshTessFace`, sequence :return: list of random points over all faces. :rtype: list """ diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 8c02e845071..933e77ce2e3 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -411,7 +411,7 @@ class MeshEdge(StructRNA): return ord_ind(*tuple(self.vertices)) -class MeshFace(StructRNA): +class MeshTessFace(StructRNA): __slots__ = () @property |