diff options
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 14 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Mesh.py | 16 |
2 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 4bc74e9391e..e20606a1f72 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -6236,7 +6236,7 @@ void Mesh_addCustomLayer_internal(Mesh *me, int type) } /* custom data layers */ -static PyObject *Mesh_addUvLayer( BPy_Mesh * self ) +static PyObject *Mesh_addUVLayer( BPy_Mesh * self ) { Mesh_addCustomLayer_internal(self->mesh, CD_MTFACE); Py_RETURN_NONE; @@ -6248,7 +6248,7 @@ static PyObject *Mesh_addColorLayer( BPy_Mesh * self, PyObject * args ) Py_RETURN_NONE; } -static PyObject *Mesh_removeUvLayer( BPy_Mesh * self ) +static PyObject *Mesh_removeUVLayer( BPy_Mesh * self ) { Mesh *me = self->mesh; if (me->mtface != NULL) { @@ -6558,11 +6558,11 @@ static struct PyMethodDef BPy_Mesh_methods[] = { "Recalculates inside or outside normals (experimental)"}, /* mesh custom data layers */ - {"addUvLayer", (PyCFunction)Mesh_addUvLayer, METH_NOARGS, + {"addUVLayer", (PyCFunction)Mesh_addUVLayer, METH_NOARGS, "adds a UV layer to this mesh"}, {"addColorLayer", (PyCFunction)Mesh_addColorLayer, METH_NOARGS, "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"}, {"removeColorLayer", (PyCFunction)Mesh_removeColorLayer, METH_NOARGS, "removes a color layer to this mesh"}, @@ -7327,17 +7327,17 @@ static PyGetSetDef BPy_Mesh_getseters[] = { (getter)Mesh_getActiveLayer, (setter)Mesh_setActiveLayer, "Index of the active UV layer", CD_MCOL}, - {"activeUvLayer", + {"activeUVLayer", (getter)Mesh_getActiveLayer, (setter)Mesh_setActiveLayer, "Index of the active vertex color layer", CD_MTFACE}, - {"totColorLayers", + {"totalColorLayers", (getter)Mesh_getTotLayers, (setter)NULL, "Index of the active vertex color layer", CD_MCOL}, - {"totUvLayers", + {"totalUVLayers", (getter)Mesh_getTotLayers, (setter)NULL, "Index of the active vertex color layer", CD_MTFACE}, diff --git a/source/blender/python/api2_2x/doc/Mesh.py b/source/blender/python/api2_2x/doc/Mesh.py index 5bd93cc290b..2b6c1fff1eb 100644 --- a/source/blender/python/api2_2x/doc/Mesh.py +++ b/source/blender/python/api2_2x/doc/Mesh.py @@ -751,15 +751,15 @@ class Mesh: mesh can be used for rendering textures. @type texMesh: Mesh or None - @ivar activeUvLayer: The mesh's active UV/Image layer index. -1 if there is no UV/Image layers. - @type activeUvLayer: int + @ivar activeUVLayer: The mesh's active UV/Image layer index. -1 if there is no UV/Image layers. + @type activeUVLayer: int @ivar activeColorLayer: The mesh's active Vertex Color layer index. -1 if there is no UV/Image layers. @type activeColorLayer: int - @ivar totUvLayers: The mesh's total number of UV/Image layers. - @type totUvLayers: int - @ivar totColorLayers: The mesh's total number of Vertex Color layers. - @type totColorLayers: int + @ivar totalUVLayers: The mesh's total number of UV/Image layers. + @type totalUVLayers: int + @ivar totalColorLayers: The mesh's total number of Vertex Color layers. + @type totalColorLayers: int """ @@ -1002,7 +1002,7 @@ class Mesh: 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. """ @@ -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. """ - def removeUvLayer(): + def removeUVLayer(): """ Removes the active UV/Image layer. """ |