diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-01-16 02:09:52 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-01-16 02:09:52 +0300 |
commit | c7a122aa27662a2fb528663ddd3dd652cdda2010 (patch) | |
tree | a014a8601c20ccd4d48dd82e9b0f88245b4beddd /source/blender/makesrna/intern/rna_internal.h | |
parent | bc1e26e4965877533902aa5d0e51537deeb319c4 (diff) | |
parent | 86bbab7de53b07ad9a45b11dbff6bd5c0ee40c14 (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.h | 7 |
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; |