diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 49 | ||||
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_utils.c | 2 | ||||
-rw-r--r-- | source/blender/python/mathutils/mathutils.c | 4 | ||||
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.c | 10 | ||||
-rw-r--r-- | source/blender/python/mathutils/mathutils_Quaternion.c | 2 |
5 files changed, 33 insertions, 34 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 22eded1d11b..750b6002fa6 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -179,13 +179,13 @@ static int bpy_bm_elem_index_set(BPy_BMElem *self, PyObject *value, void *UNUSED /* doc-strings for all uses of this funcion */ PyDoc_STRVAR(bpy_bmesh_verts_doc, -"This meshes vert sequence (readonly).\n\n:type: :class:`BMElemSeq`" +"This meshes vert sequence (read-only).\n\n:type: :class:`BMElemSeq`" ); PyDoc_STRVAR(bpy_bmesh_edges_doc, -"This meshes edge sequence (readonly).\n\n:type: :class:`BMElemSeq`" +"This meshes edge sequence (read-only).\n\n:type: :class:`BMElemSeq`" ); PyDoc_STRVAR(bpy_bmesh_faces_doc, -"This meshes face sequence (readonly).\n\n:type: :class:`BMElemSeq`" +"This meshes face sequence (read-only).\n\n:type: :class:`BMElemSeq`" ); static PyObject *bpy_bmelemseq_get(BPy_BMesh *self, void *itype) @@ -196,37 +196,37 @@ static PyObject *bpy_bmelemseq_get(BPy_BMesh *self, void *itype) /* vert */ PyDoc_STRVAR(bpy_bmvert_link_edges_doc, -"Edges connected to this vertex (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMVert`" +"Edges connected to this vertex (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMVert`" ); PyDoc_STRVAR(bpy_bmvert_link_faces_doc, -"Faces connected to this vertex (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMFace`" +"Faces connected to this vertex (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMFace`" ); PyDoc_STRVAR(bpy_bmvert_link_loops_doc, -"Loops that use this vertex (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" +"Loops that use this vertex (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" ); /* edge */ PyDoc_STRVAR(bpy_bmedge_verts_doc, -"Verts this edge uses (always 2), (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMVert`" +"Verts this edge uses (always 2), (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMVert`" ); PyDoc_STRVAR(bpy_bmedge_link_faces_doc, -"Faces connected to this edge, (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMFace`" +"Faces connected to this edge, (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMFace`" ); PyDoc_STRVAR(bpy_bmedge_link_loops_doc, -"Loops connected to this edge, (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" +"Loops connected to this edge, (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" ); /* face */ PyDoc_STRVAR(bpy_bmface_verts_doc, -"Verts of this face, (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMVert`" +"Verts of this face, (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMVert`" ); PyDoc_STRVAR(bpy_bmface_edges_doc, -"Edges of this face, (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMEdge`" +"Edges of this face, (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMEdge`" ); PyDoc_STRVAR(bpy_bmface_loops_doc, -"Loops of this face, (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" +"Loops of this face, (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" ); /* loop */ PyDoc_STRVAR(bpy_bmloops_link_loops_doc, -"Loops connected to this loop, (readonly).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" +"Loops connected to this loop, (read-only).\n\n:type: :class:`BMElemSeq` of :class:`BMLoop`" ); static PyObject *bpy_bmelemseq_elem_get(BPy_BMElem *self, void *itype) @@ -319,7 +319,7 @@ static int bpy_bmvert_normal_set(BPy_BMVert *self, PyObject *value) } PyDoc_STRVAR(bpy_bmvert_is_manifold_doc, -"True when this vertex is manifold (readonly).\n\n:type: boolean" +"True when this vertex is manifold (read-only).\n\n:type: boolean" ); static PyObject *bpy_bmvert_is_manifold_get(BPy_BMVert *self) { @@ -328,7 +328,7 @@ static PyObject *bpy_bmvert_is_manifold_get(BPy_BMVert *self) } PyDoc_STRVAR(bpy_bmvert_is_wire_doc, -"True when this vertex is not connected to any faces (readonly).\n\n:type: boolean" +"True when this vertex is not connected to any faces (read-only).\n\n:type: boolean" ); static PyObject *bpy_bmvert_is_wire_get(BPy_BMVert *self) { @@ -340,7 +340,7 @@ static PyObject *bpy_bmvert_is_wire_get(BPy_BMVert *self) * ^^^^ */ PyDoc_STRVAR(bpy_bmedge_is_manifold_doc, -"True when this edge is manifold (readonly).\n\n:type: boolean" +"True when this edge is manifold (read-only).\n\n:type: boolean" ); static PyObject *bpy_bmedge_is_manifold_get(BPy_BMEdge *self) { @@ -349,7 +349,7 @@ static PyObject *bpy_bmedge_is_manifold_get(BPy_BMEdge *self) } PyDoc_STRVAR(bpy_bmedge_is_wire_doc, -"True when this edge is not connected to any faces (readonly).\n\n:type: boolean" +"True when this edge is not connected to any faces (read-only).\n\n:type: boolean" ); static PyObject *bpy_bmedge_is_wire_get(BPy_BMEdge *self) { @@ -357,13 +357,13 @@ static PyObject *bpy_bmedge_is_wire_get(BPy_BMEdge *self) return PyBool_FromLong(BM_edge_is_wire(self->bm, self->e)); } -PyDoc_STRVAR(bpy_bmedge_is_boundry_doc, -"True when this edge is at the boundry of a face (readonly).\n\n:type: boolean" +PyDoc_STRVAR(bpy_bmedge_is_boundary_doc, +"True when this edge is at the boundary of a face (read-only).\n\n:type: boolean" ); -static PyObject *bpy_bmedge_is_boundry_get(BPy_BMEdge *self) +static PyObject *bpy_bmedge_is_boundary_get(BPy_BMEdge *self) { BPY_BM_CHECK_OBJ(self); - return PyBool_FromLong(BM_edge_is_boundry(self->e)); + return PyBool_FromLong(BM_edge_is_boundary(self->e)); } /* Face @@ -444,7 +444,7 @@ static PyGetSetDef bpy_bmedge_getseters[] = { /* readonly checks */ {(char *)"is_manifold", (getter)bpy_bmedge_is_manifold_get, (setter)NULL, (char *)bpy_bmedge_is_manifold_doc, NULL}, {(char *)"is_wire", (getter)bpy_bmedge_is_wire_get, (setter)NULL, (char *)bpy_bmedge_is_wire_doc, NULL}, - {(char *)"is_boundry", (getter)bpy_bmedge_is_boundry_get, (setter)NULL, (char *)bpy_bmedge_is_boundry_doc, NULL}, + {(char *)"is_boundary", (getter)bpy_bmedge_is_boundary_get, (setter)NULL, (char *)bpy_bmedge_is_boundary_doc, NULL}, {(char *)"is_valid", (getter)bpy_bm_is_valid_get, (setter)NULL, (char *)bpy_bm_is_valid_doc, NULL}, {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ @@ -513,7 +513,7 @@ static PyObject *bpy_bmesh_select_flush_mode(BPy_BMesh *self) PyDoc_STRVAR(bpy_bmesh_select_flush_doc, ".. method:: select_flush(select)\n" "\n" -" Flush selection, independant of the current selection mode.\n" +" Flush selection, independent of the current selection mode.\n" "\n" " :arg select: flush selection or de-selected elements.\n" " :type select: boolean\n" @@ -543,7 +543,6 @@ PyDoc_STRVAR(bpy_bmesh_normal_update_doc, "\n" " :arg skip_hidden: When True hidden elements are ignored.\n" " :type skip_hidden: boolean\n" - ); static PyObject *bpy_bmesh_normal_update(BPy_BMElem *self, PyObject *args) { @@ -636,7 +635,7 @@ PyDoc_STRVAR(bpy_bm_elem_select_set_doc, ".. method:: select_set(select)\n" "\n" " Set the selection.\n" -" This is different from the *select* attribute because it updates the selection state of assosiated geometry..\n" +" This is different from the *select* attribute because it updates the selection state of assosiated geometry.\n" "\n" " :arg select: Select or de-select.\n" " :type select: boolean\n" diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c index 7be29ca6ea7..fdb5b1a3c9f 100644 --- a/source/blender/python/bmesh/bmesh_py_utils.c +++ b/source/blender/python/bmesh/bmesh_py_utils.c @@ -385,7 +385,7 @@ PyDoc_STRVAR(bpy_bm_utils_face_join_doc, "\n" " :arg faces: Sequence of faces .\n" " :type faces: :class:`bmesh.types.BMFace`\n" -" :return: The newly created face or None on failier.\n" +" :return: The newly created face or None on failure.\n" " :rtype: :class:`bmesh.types.BMFace`\n" ); static PyObject *bpy_bm_utils_face_join(PyObject *UNUSED(self), PyObject *value) diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c index c9afb7edf4b..a9a9ba8643c 100644 --- a/source/blender/python/mathutils/mathutils.c +++ b/source/blender/python/mathutils/mathutils.c @@ -358,7 +358,7 @@ int _BaseMathObject_WriteIndexCallback(BaseMathObject *self, int index) } /* BaseMathObject generic functions for all mathutils types */ -char BaseMathObject_owner_doc[] = "The item this is wrapping or None (readonly)."; +char BaseMathObject_owner_doc[] = "The item this is wrapping or None (read-only)."; PyObject *BaseMathObject_owner_get(BaseMathObject *self, void *UNUSED(closure)) { PyObject *ret = self->cb_user ? self->cb_user : Py_None; @@ -366,7 +366,7 @@ PyObject *BaseMathObject_owner_get(BaseMathObject *self, void *UNUSED(closure)) return ret; } -char BaseMathObject_is_wrapped_doc[] = "True when this object wraps external data (readonly).\n\n:type: boolean"; +char BaseMathObject_is_wrapped_doc[] = "True when this object wraps external data (read-only).\n\n:type: boolean"; PyObject *BaseMathObject_is_wrapped_get(BaseMathObject *self, void *UNUSED(closure)) { return PyBool_FromLong((self->wrapped == Py_WRAP) ? 1:0); diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index cbe5b6d2ce5..d4f07def6d1 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -2146,7 +2146,7 @@ static int Matrix_translation_set(MatrixObject *self, PyObject *value, void *UNU } PyDoc_STRVAR(Matrix_row_doc, -"Access the matix by rows (default), (readonly).\n\n:type: Matrix Access" +"Access the matix by rows (default), (read-only).\n\n:type: Matrix Access" ); static PyObject *Matrix_row_get(MatrixObject *self, void *UNUSED(closure)) { @@ -2154,7 +2154,7 @@ static PyObject *Matrix_row_get(MatrixObject *self, void *UNUSED(closure)) } PyDoc_STRVAR(Matrix_col_doc, -"Access the matix by colums, 3x3 and 4x4 only, (readonly).\n\n:type: Matrix Access" +"Access the matix by colums, 3x3 and 4x4 only, (read-only).\n\n:type: Matrix Access" ); static PyObject *Matrix_col_get(MatrixObject *self, void *UNUSED(closure)) { @@ -2162,7 +2162,7 @@ static PyObject *Matrix_col_get(MatrixObject *self, void *UNUSED(closure)) } PyDoc_STRVAR(Matrix_median_scale_doc, -"The average scale applied to each axis (readonly).\n\n:type: float" +"The average scale applied to each axis (read-only).\n\n:type: float" ); static PyObject *Matrix_median_scale_get(MatrixObject *self, void *UNUSED(closure)) { @@ -2185,7 +2185,7 @@ static PyObject *Matrix_median_scale_get(MatrixObject *self, void *UNUSED(closur } PyDoc_STRVAR(Matrix_is_negative_doc, -"True if this matrix results in a negative scale, 3x3 and 4x4 only, (readonly).\n\n:type: bool" +"True if this matrix results in a negative scale, 3x3 and 4x4 only, (read-only).\n\n:type: bool" ); static PyObject *Matrix_is_negative_get(MatrixObject *self, void *UNUSED(closure)) { @@ -2206,7 +2206,7 @@ static PyObject *Matrix_is_negative_get(MatrixObject *self, void *UNUSED(closure } PyDoc_STRVAR(Matrix_is_orthogonal_doc, -"True if this matrix is orthogonal, 3x3 and 4x4 only, (readonly).\n\n:type: bool" +"True if this matrix is orthogonal, 3x3 and 4x4 only, (read-only).\n\n:type: bool" ); static PyObject *Matrix_is_orthogonal_get(MatrixObject *self, void *UNUSED(closure)) { diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c index 20e951800c2..c5159ce0fa2 100644 --- a/source/blender/python/mathutils/mathutils_Quaternion.c +++ b/source/blender/python/mathutils/mathutils_Quaternion.c @@ -938,7 +938,7 @@ static int Quaternion_axis_set(QuaternionObject *self, PyObject *value, void *ty } PyDoc_STRVAR(Quaternion_magnitude_doc, -"Size of the quaternion (readonly).\n\n:type: float" +"Size of the quaternion (read-only).\n\n:type: float" ); static PyObject *Quaternion_magnitude_get(QuaternionObject *self, void *UNUSED(closure)) { |