Docs: add doc-strings for some GPU_matrix functions

Also note the use of flat-array length for PyRNA foreach get/set.
This commit is contained in:
Campbell Barton
2024-01-15 14:28:37 +11:00
parent 4effcd33a3
commit fb532784e1
2 changed files with 15 additions and 1 deletions

View File

@@ -5718,6 +5718,8 @@ static PyObject *pyprop_array_foreach_getset(BPy_PropertyArrayRNA *self,
return nullptr;
}
/* NOTE: in this case it's important to use the flat-array size and *not* the result of
* `len()`, which uses #pyrna_prop_array_length, see !116457 for details. */
size = RNA_property_array_length(&self->ptr, self->prop);
seq_size = PySequence_Size(seq);