name changes from theeths suggestions

totUvLayers -> totalUVLayers
addUvLayers -> addUVLayers
This commit is contained in:
2006-12-13 02:55:49 +00:00
parent a119216a53
commit 228bebfaa8
2 changed files with 15 additions and 15 deletions

View File

@@ -6236,7 +6236,7 @@ void Mesh_addCustomLayer_internal(Mesh *me, int type)
} }
/* custom data layers */ /* custom data layers */
static PyObject *Mesh_addUvLayer( BPy_Mesh * self ) static PyObject *Mesh_addUVLayer( BPy_Mesh * self )
{ {
Mesh_addCustomLayer_internal(self->mesh, CD_MTFACE); Mesh_addCustomLayer_internal(self->mesh, CD_MTFACE);
Py_RETURN_NONE; Py_RETURN_NONE;
@@ -6248,7 +6248,7 @@ static PyObject *Mesh_addColorLayer( BPy_Mesh * self, PyObject * args )
Py_RETURN_NONE; Py_RETURN_NONE;
} }
static PyObject *Mesh_removeUvLayer( BPy_Mesh * self ) static PyObject *Mesh_removeUVLayer( BPy_Mesh * self )
{ {
Mesh *me = self->mesh; Mesh *me = self->mesh;
if (me->mtface != NULL) { if (me->mtface != NULL) {
@@ -6558,11 +6558,11 @@ static struct PyMethodDef BPy_Mesh_methods[] = {
"Recalculates inside or outside normals (experimental)"}, "Recalculates inside or outside normals (experimental)"},
/* mesh custom data layers */ /* mesh custom data layers */
{"addUvLayer", (PyCFunction)Mesh_addUvLayer, METH_NOARGS, {"addUVLayer", (PyCFunction)Mesh_addUVLayer, METH_NOARGS,
"adds a UV layer to this mesh"}, "adds a UV layer to this mesh"},
{"addColorLayer", (PyCFunction)Mesh_addColorLayer, METH_NOARGS, {"addColorLayer", (PyCFunction)Mesh_addColorLayer, METH_NOARGS,
"adds a color layer to this mesh"}, "adds a color layer to this mesh"},
{"removeUvLayer", (PyCFunction)Mesh_removeUvLayer, METH_NOARGS, {"removeUVLayer", (PyCFunction)Mesh_removeUVLayer, METH_NOARGS,
"removes a UV layer to this mesh"}, "removes a UV layer to this mesh"},
{"removeColorLayer", (PyCFunction)Mesh_removeColorLayer, METH_NOARGS, {"removeColorLayer", (PyCFunction)Mesh_removeColorLayer, METH_NOARGS,
"removes a color layer to this mesh"}, "removes a color layer to this mesh"},
@@ -7327,17 +7327,17 @@ static PyGetSetDef BPy_Mesh_getseters[] = {
(getter)Mesh_getActiveLayer, (setter)Mesh_setActiveLayer, (getter)Mesh_getActiveLayer, (setter)Mesh_setActiveLayer,
"Index of the active UV layer", "Index of the active UV layer",
CD_MCOL}, CD_MCOL},
{"activeUvLayer", {"activeUVLayer",
(getter)Mesh_getActiveLayer, (setter)Mesh_setActiveLayer, (getter)Mesh_getActiveLayer, (setter)Mesh_setActiveLayer,
"Index of the active vertex color layer", "Index of the active vertex color layer",
CD_MTFACE}, CD_MTFACE},
{"totColorLayers", {"totalColorLayers",
(getter)Mesh_getTotLayers, (setter)NULL, (getter)Mesh_getTotLayers, (setter)NULL,
"Index of the active vertex color layer", "Index of the active vertex color layer",
CD_MCOL}, CD_MCOL},
{"totUvLayers", {"totalUVLayers",
(getter)Mesh_getTotLayers, (setter)NULL, (getter)Mesh_getTotLayers, (setter)NULL,
"Index of the active vertex color layer", "Index of the active vertex color layer",
CD_MTFACE}, CD_MTFACE},

View File

@@ -751,15 +751,15 @@ class Mesh:
mesh can be used for rendering textures. mesh can be used for rendering textures.
@type texMesh: Mesh or None @type texMesh: Mesh or None
@ivar activeUvLayer: The mesh's active UV/Image layer index. -1 if there is no UV/Image layers. @ivar activeUVLayer: The mesh's active UV/Image layer index. -1 if there is no UV/Image layers.
@type activeUvLayer: int @type activeUVLayer: int
@ivar activeColorLayer: The mesh's active Vertex Color layer index. -1 if there is no UV/Image layers. @ivar activeColorLayer: The mesh's active Vertex Color layer index. -1 if there is no UV/Image layers.
@type activeColorLayer: int @type activeColorLayer: int
@ivar totUvLayers: The mesh's total number of UV/Image layers. @ivar totalUVLayers: The mesh's total number of UV/Image layers.
@type totUvLayers: int @type totalUVLayers: int
@ivar totColorLayers: The mesh's total number of Vertex Color layers. @ivar totalColorLayers: The mesh's total number of Vertex Color layers.
@type totColorLayers: int @type totalColorLayers: int
""" """
@@ -1002,7 +1002,7 @@ class Mesh:
Blender itself later). Blender itself later).
""" """
def addUvLayer(): def addUVLayer():
""" """
Adds a new UV/Image layer to this mesh, it will always be the last layer and made active. Adds a new UV/Image layer to this mesh, it will always be the last layer and made active.
""" """
@@ -1012,7 +1012,7 @@ class Mesh:
Adds a new Vertex Color layer to this mesh, it will always be the last layer and made active. Adds a new Vertex Color layer to this mesh, it will always be the last layer and made active.
""" """
def removeUvLayer(): def removeUVLayer():
""" """
Removes the active UV/Image layer. Removes the active UV/Image layer.
""" """