Blender Git Commit Log

Git Commits -> Revision 827b145

February 18, 2016, 16:53 (GMT)
Rework library_query foreach looper - add optional recursivity.

This commit:
* Fixes bad handling of 'stop iteration' (by adding a status flag, so that we can actually
stop in helper functions too, and jumping to a finalize label instead of raw return, to
allow propper clean up).
* Adds optional recursion into 'ID tree' - callback can also decide to exclude current id_pp
from recursion. Note that this implies 'readonly', modifying IDs while recursing is not
something we want to support!
* Changes callback signature/expected behavior: return behavior is now handled through flags,
and 'parent' ID of id_pp is also passed (since it may not always be root id anymore).

Used this new recursive behavior in ID preview generation as an example, still needs more testing!

Commit Details:

Full Hash: 827b1457ca9e76f627e8c88cf883847fc3ae3267
Parent Commit: a8e6b63
Lines Changed: +486, -417

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2019