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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-01-16 02:09:52 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-01-16 02:09:52 +0300
commitc7a122aa27662a2fb528663ddd3dd652cdda2010 (patch)
treea014a8601c20ccd4d48dd82e9b0f88245b4beddd /source/blender/makesrna/intern/rna_internal.h
parentbc1e26e4965877533902aa5d0e51537deeb319c4 (diff)
parent86bbab7de53b07ad9a45b11dbff6bd5c0ee40c14 (diff)
Merged changes in the trunk up to revision 34335.
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal.h')
-rw-r--r--source/blender/makesrna/intern/rna_internal.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h
index 280f5d882b4..8f760466513 100644
--- a/source/blender/makesrna/intern/rna_internal.h
+++ b/source/blender/makesrna/intern/rna_internal.h
@@ -323,10 +323,15 @@ PointerRNA rna_listbase_lookup_int(PointerRNA *ptr, StructRNA *type, struct List
typedef struct ArrayIterator {
char *ptr;
- char *endptr;
+ char *endptr; /* past the last valid pointer, only for comparisons, ignores skipped values */
void *free_ptr; /* will be free'd if set */
int itemsize;
+
+ /* array length with no skip functins applied, take care not to compare against index from animsys or python indicies */
int length;
+
+ /* optional skip function, when set the array as viewed by rna can contain only a subset of the members.
+ * this changes indicies so quick array index lookups are not possible when skip function is used. */
IteratorSkipFunc skip;
} ArrayIterator;