Cleanup: spelling in comments
This commit is contained in:
@@ -1397,7 +1397,7 @@ PyObject *pyrna_prop_to_py(PointerRNA *ptr, PropertyRNA *prop)
|
||||
|
||||
buf = RNA_property_string_get_alloc(ptr, prop, buf_fixed, sizeof(buf_fixed), &buf_len);
|
||||
#ifdef USE_STRING_COERCE
|
||||
/* Only file paths get special treatment, they may contain non utf-8 chars. */
|
||||
/* Only file paths get special treatment, they may contain non UTF-8 chars. */
|
||||
if (subtype == PROP_BYTESTRING) {
|
||||
ret = PyBytes_FromStringAndSize(buf, buf_len);
|
||||
}
|
||||
@@ -6487,7 +6487,7 @@ static PyObject *pyrna_func_doc_get(BPy_FunctionRNA *self, void *UNUSED(closure)
|
||||
PyTypeObject pyrna_struct_meta_idprop_Type = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0) "bpy_struct_meta_idprop", /* tp_name */
|
||||
|
||||
/* NOTE: would be PyTypeObject, but subtypes of Type must be PyHeapTypeObject's. */
|
||||
/* NOTE: would be PyTypeObject, but sub-types of Type must be PyHeapTypeObject's. */
|
||||
sizeof(PyHeapTypeObject), /* tp_basicsize */
|
||||
|
||||
0, /* tp_itemsize */
|
||||
@@ -7308,7 +7308,7 @@ static PyObject *pyrna_srna_PyBase(StructRNA *srna) //, PyObject *bpy_types_dic
|
||||
if (base && base != srna) {
|
||||
// printf("debug subtype %s %p\n", RNA_struct_identifier(srna), srna);
|
||||
py_base = pyrna_srna_Subtype(base); //, bpy_types_dict);
|
||||
Py_DECREF(py_base); /* Srna owns, this is only to pass as an arg. */
|
||||
Py_DECREF(py_base); /* `srna` owns, this is only to pass as an argument. */
|
||||
}
|
||||
|
||||
if (py_base == NULL) {
|
||||
@@ -8846,7 +8846,7 @@ static void bpy_class_free(void *pyob_ptr)
|
||||
}
|
||||
|
||||
/**
|
||||
* \note This isn't essential to run on startup, since subtypes will lazy initialize.
|
||||
* \note This isn't essential to run on startup, since sub-types will lazy initialize.
|
||||
* But keep running in debug mode so we get immediate notification of bad class hierarchy
|
||||
* or any errors in "bpy_types.py" at load time, so errors don't go unnoticed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user