name changes from theeths suggestions
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Dec 2006 02:55:49 +0000 (02:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Dec 2006 02:55:49 +0000 (02:55 +0000)
totUvLayers -> totalUVLayers
addUvLayers -> addUVLayers

source/blender/python/api2_2x/Mesh.c
source/blender/python/api2_2x/doc/Mesh.py

index 4bc74e9391e9fc0aa409a76544e6bc21b7c0633e..e20606a1f72fd214421bf2522177d3a89257d024 100644 (file)
@@ -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},
index 5bd93cc290bf949775772a5e25f422cd6da064ba..2b6c1fff1ebe97321c4e53364b060e27ce5757b4 100644 (file)
@@ -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.
     """