Change !BLI_ghashIterator_isDone to BLI_ghashIterator_notDone. It is
[blender.git] / source / blender / python / intern / bpy_rna.c
index cef4e23242da8eccc3833b82719a22d1e9575917..d8842256c22e61b0f1f2f2d1674cbf5b9db4b9df 100644 (file)
@@ -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_isDone(&weakinfo_hash_iter)) {
+       while (BLI_ghashIterator_notDone(&weakinfo_hash_iter)) {
                PyObject *weakref = (PyObject *)BLI_ghashIterator_getKey(&weakinfo_hash_iter);
                PyObject *item = PyWeakref_GET_OBJECT(weakref);
                if (item != Py_None) {