Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index 6abe6c7c8be..aac36e5b79b 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -241,6 +241,11 @@ void BLI_mempool_free(BLI_mempool *pool, void *addr)
}
}
+int BLI_mempool_count(BLI_mempool *pool)
+{
+ return pool->totused;
+}
+
void *BLI_mempool_findelem(BLI_mempool *pool, int index)
{
if (!pool->allow_iter) {