rename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()
was renamed fairly recently but other similar iterators not negated like this, would prefer to keep it as it was
This commit is contained in:
@@ -369,7 +369,7 @@ static PyObject *pyop_dir(PyObject *UNUSED(self))
|
||||
GHashIterator *iter = WM_operatortype_iter();
|
||||
PyObject *list = PyList_New(0), *name;
|
||||
|
||||
for ( ; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
|
||||
for ( ; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
|
||||
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
|
||||
|
||||
name = PyUnicode_FromString(ot->idname);
|
||||
|
||||
@@ -250,7 +250,7 @@ static void id_release_weakref_list(struct ID *id, GHash *weakinfo_hash)
|
||||
fprintf(stdout, "id_release_weakref: '%s', %d items\n", id->name, BLI_ghash_size(weakinfo_hash));
|
||||
#endif
|
||||
|
||||
while (BLI_ghashIterator_notDone(&weakinfo_hash_iter)) {
|
||||
while (!BLI_ghashIterator_done(&weakinfo_hash_iter)) {
|
||||
PyObject *weakref = (PyObject *)BLI_ghashIterator_getKey(&weakinfo_hash_iter);
|
||||
PyObject *item = PyWeakref_GET_OBJECT(weakref);
|
||||
if (item != Py_None) {
|
||||
|
||||
Reference in New Issue
Block a user