From a6a0a091978d09ffa85306dcabb671370a5bb322 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 30 Sep 2019 17:06:28 +1000 Subject: Cleanup: spelling --- source/blender/python/generic/idprop_py_api.c | 2 +- source/blender/python/intern/bpy_rna.c | 6 +++--- source/blender/python/mathutils/mathutils_Vector.c | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'source/blender/python') diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index 16b2f2dba6d..335dea0a2b6 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -897,7 +897,7 @@ static PyObject *BPy_IDGroup_pop(BPy_IDProperty *self, PyObject *args) pyform = BPy_IDGroup_MapDataToPy(idprop); if (pyform == NULL) { - /* ok something bad happened with the pyobject, + /* ok something bad happened with the #PyObject, * so don't remove the prop from the group. if pyform is * NULL, then it already should have raised an exception.*/ return NULL; diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 9b5a9a160ba..45a7d2dacd1 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -1928,7 +1928,7 @@ static int pyrna_py_to_prop( * layout.prop(self.properties, "filepath") * * we need to do this trick. - * if the prop is not an operator type and the pyobject is an operator, + * if the prop is not an operator type and the PyObject is an operator, * use its properties in place of itself. * * This is so bad that it is almost a good reason to do away with fake @@ -3985,7 +3985,7 @@ static PyObject *pyrna_struct_type_recast(BPy_StructRNA *self) } /** - * \note Return value is borrowed, caller must incref. + * \note Return value is borrowed, caller must #Py_INCREF. */ static PyObject *pyrna_struct_bl_rna_find_subclass_recursive(PyObject *cls, const char *id) { @@ -7192,7 +7192,7 @@ static PyObject *pyrna_srna_Subtype(StructRNA *srna) #endif /* Newclass will now have 2 ref's, ???, - * probably 1 is internal since decrefing here segfaults. */ + * probably 1 is internal since #Py_DECREF here segfaults. */ /* PyC_ObSpit("new class ref", newclass); */ diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c index 87de0ff546e..0555c707ed3 100644 --- a/source/blender/python/mathutils/mathutils_Vector.c +++ b/source/blender/python/mathutils/mathutils_Vector.c @@ -2351,26 +2351,26 @@ static PyObject *Vector_length_squared_get(VectorObject *self, void *UNUSED(clos * * axis_dict = {} * axis_pos = {'x': 0, 'y': 1, 'z': 2, 'w': 3} - * axises = 'xyzw' - * while len(axises) >= 2: - * for axis_0 in axises: + * axis_chars = 'xyzw' + * while len(axis_chars) >= 2: + * for axis_0 in axis_chars: * axis_0_pos = axis_pos[axis_0] - * for axis_1 in axises: + * for axis_1 in axis_chars: * axis_1_pos = axis_pos[axis_1] * axis_dict[axis_0 + axis_1] = ( * '((%s | SWIZZLE_VALID_AXIS) | ' * '((%s | SWIZZLE_VALID_AXIS) << SWIZZLE_BITS_PER_AXIS))' % * (axis_0_pos, axis_1_pos)) - * if len(axises) > 2: - * for axis_2 in axises: + * if len(axis_chars) > 2: + * for axis_2 in axis_chars: * axis_2_pos = axis_pos[axis_2] * axis_dict[axis_0 + axis_1 + axis_2] = ( * '((%s | SWIZZLE_VALID_AXIS) | ' * '((%s | SWIZZLE_VALID_AXIS) << SWIZZLE_BITS_PER_AXIS) | ' * '((%s | SWIZZLE_VALID_AXIS) << (SWIZZLE_BITS_PER_AXIS * 2)))' % * (axis_0_pos, axis_1_pos, axis_2_pos)) - * if len(axises) > 3: - * for axis_3 in axises: + * if len(axis_chars) > 3: + * for axis_3 in axis_chars: * axis_3_pos = axis_pos[axis_3] * axis_dict[axis_0 + axis_1 + axis_2 + axis_3] = ( * '((%s | SWIZZLE_VALID_AXIS) | ' @@ -2380,7 +2380,7 @@ static PyObject *Vector_length_squared_get(VectorObject *self, void *UNUSED(clos * % * (axis_0_pos, axis_1_pos, axis_2_pos, axis_3_pos)) * - * axises = axises[:-1] + * axis_chars = axis_chars[:-1] * items = list(axis_dict.items()) * items.sort( * key=lambda a: a[0].replace('x', '0').replace('y', '1').replace('z', '2').replace('w', '3') -- cgit v1.2.3