Cleanup: spelling
This commit is contained in:
@@ -927,7 +927,7 @@ PyObject *pyrna_py_from_array_index(BPy_PropertyArrayRNA *self,
|
||||
/* just in case check */
|
||||
len = RNA_property_multi_array_length(ptr, prop, arraydim);
|
||||
if (index >= len || index < 0) {
|
||||
/* this shouldn't happen because higher level funcs must check for invalid index */
|
||||
/* This shouldn't happen because higher level functions must check for invalid index. */
|
||||
CLOG_WARN(BPY_LOG_RNA, "invalid index %d for array with length=%d", index, len);
|
||||
|
||||
PyErr_SetString(PyExc_IndexError, "out of range");
|
||||
|
||||
Reference in New Issue
Block a user