Blender Git Loki

Git Commits -> Revision 3a2ce2b

Revision 3a2ce2b by Campbell Barton (master)
March 3, 2011, 07:41 (GMT)
Py/RNA api - real collection iterator
Previously the api just converted the collection to a list and got the iterator from the list to return.

This has the advantage that it uses minimal memory on large collections where before it would make an array.

Though the main reason for this change is to support a bugfix for collections which free memory when they are done, this currently crashes the python api since once the list is built, the data is freed which is used by the list items in some cases (dynamic enums for eg).

Commit Details:

Full Hash: 3a2ce2be8337196436a464e4f865bb84d28485a5
SVN Revision: 35322
Parent Commit: b535c73
Lines Changed: +169, -0

2 Modified Paths:

/source/blender/python/intern/bpy_rna.c (+157, -0) (Diff)
/source/blender/python/intern/bpy_rna.h (+12, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021