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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-02-08 16:34:13 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-02-08 20:53:09 +0300
commita8f28329ad43569ff4242682353c504b08201c08 (patch)
tree7dbd30c131599dc632160d5d54d577cfadf949a2 /source/blender/blenkernel/BKE_idcode.h
parent02581a7ef819bfd388420114280ab4a83f155eaf (diff)
BKE_idcode: Add utils to convert from 'lbarray' index to ID type.
This can be useful to be able to match some random array data with ListBase array of IDs generated by `set_listbasepointers()`.
Diffstat (limited to 'source/blender/blenkernel/BKE_idcode.h')
-rw-r--r--source/blender/blenkernel/BKE_idcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_idcode.h b/source/blender/blenkernel/BKE_idcode.h
index 3c98656ccb6..ff6e4689f40 100644
--- a/source/blender/blenkernel/BKE_idcode.h
+++ b/source/blender/blenkernel/BKE_idcode.h
@@ -34,6 +34,7 @@ int BKE_idcode_to_idfilter(const short idcode);
short BKE_idcode_from_idfilter(const int idfilter);
int BKE_idcode_to_index(const short idcode);
+short BKE_idcode_from_index(const int index);
/**
* Return an ID code and steps the index forward 1.