Spelling fixes in comments and descriptions, patch by luzpaz.
Differential Revision: https://developer.blender.org/D3700
This commit is contained in:
@@ -2453,7 +2453,7 @@ PyDoc_STRVAR(bpy_bmelemseq_index_update_doc,
|
||||
" .. note::\n"
|
||||
"\n"
|
||||
" Running this on sequences besides :class:`BMesh.verts`, :class:`BMesh.edges`, :class:`BMesh.faces`\n"
|
||||
" works but won't result in each element having a valid index, insted its order in the sequence will be set.\n"
|
||||
" works but wont result in each element having a valid index, instead its order in the sequence will be set.\n"
|
||||
);
|
||||
static PyObject *bpy_bmelemseq_index_update(BPy_BMElemSeq *self)
|
||||
{
|
||||
|
@@ -944,7 +944,7 @@ PyObject *BPy_Wrap_GetKeys(IDProperty *prop)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
if (i != prop->len) { /* if the loop didnt finish, we know the length is wrong */
|
||||
if (i != prop->len) { /* if the loop didn't finish, we know the length is wrong */
|
||||
BPy_IDGroup_CorrectListLen(prop, list, i, __func__);
|
||||
Py_DECREF(list); /*free the list*/
|
||||
/*call self again*/
|
||||
|
@@ -618,7 +618,7 @@ const char *PyC_UnicodeAsByteAndSize(PyObject *py_str, Py_ssize_t *size, PyObjec
|
||||
|
||||
if (result) {
|
||||
/* 99% of the time this is enough but we better support non unicode
|
||||
* chars since blender doesnt limit this */
|
||||
* chars since blender doesn't limit this */
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
@@ -671,7 +671,7 @@ PyObject *PyC_UnicodeFromByteAndSize(const char *str, Py_ssize_t size)
|
||||
PyObject *result = PyUnicode_FromStringAndSize(str, size);
|
||||
if (result) {
|
||||
/* 99% of the time this is enough but we better support non unicode
|
||||
* chars since blender doesnt limit this */
|
||||
* chars since blender doesn't limit this */
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
|
@@ -23,7 +23,7 @@
|
||||
/** \file blender/python/intern/bpy_path.c
|
||||
* \ingroup pythonintern
|
||||
*
|
||||
* This file defines '_bpy_path' module, Some 'C' funtionality used by 'bpy.path'
|
||||
* This file defines '_bpy_path' module, Some 'C' functionality used by 'bpy.path'
|
||||
*/
|
||||
|
||||
#include <Python.h>
|
||||
|
@@ -2351,7 +2351,7 @@ static int pyrna_prop_collection_subscript_str_lib_pair_ptr(
|
||||
}
|
||||
else {
|
||||
PyErr_Format(PyExc_KeyError,
|
||||
"%s: lib must be a sting or None, not %.200s",
|
||||
"%s: lib must be a string or None, not %.200s",
|
||||
err_prefix, Py_TYPE(keylib)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
@@ -4091,7 +4091,7 @@ static PyObject *pyrna_struct_meta_idprop_getattro(PyObject *cls, PyObject *attr
|
||||
* <bpy_struct, BoolProperty("foo")>
|
||||
* ...rather than returning the deferred class register tuple as checked by pyrna_is_deferred_prop()
|
||||
*
|
||||
* Disable for now, this is faking internal behavior in a way thats too tricky to maintain well. */
|
||||
* Disable for now, this is faking internal behavior in a way that's too tricky to maintain well. */
|
||||
#if 0
|
||||
if (ret == NULL) { // || pyrna_is_deferred_prop(ret)
|
||||
StructRNA *srna = srna_from_self(cls, "StructRNA.__getattr__");
|
||||
|
@@ -641,7 +641,7 @@ PyMODINIT_FUNC PyInit_mathutils(void)
|
||||
|
||||
/* submodule */
|
||||
PyModule_AddObject(mod, "geometry", (submodule = PyInit_mathutils_geometry()));
|
||||
/* XXX, python doesnt do imports with this usefully yet
|
||||
/* XXX, python doesn't do imports with this usefully yet
|
||||
* 'from mathutils.geometry import PolyFill'
|
||||
* ...fails without this. */
|
||||
PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule);
|
||||
|
@@ -1265,7 +1265,7 @@ static PyObject *M_Geometry_tessellate_polygon(PyObject *UNUSED(self), PyObject
|
||||
BKE_displist_fill(&dispbase, &dispbase, NULL, false);
|
||||
|
||||
/* The faces are stored in a new DisplayList
|
||||
* thats added to the head of the listbase */
|
||||
* that's added to the head of the listbase */
|
||||
dl = dispbase.first;
|
||||
|
||||
tri_list = PyList_New(dl->parts);
|
||||
|
Reference in New Issue
Block a user